summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp')
-rw-r--r--tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp b/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
index 251e2b5..0217682 100644
--- a/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
+++ b/tqtinterface/qt4/tools/designer/plugins/cppeditor/syntaxhighliter_cpp.cpp
@@ -153,7 +153,7 @@ SyntaxHighlighter_CPP::SyntaxHighlighter_CPP()
int len;
for ( int i = 0; keywords[ i ]; ++i ) {
len = (int)strlen( keywords[ i ] );
- if ( !wordMap->tqcontains( len ) )
+ if ( !wordMap->contains( len ) )
wordMap->insert( len, TQMap<TQString, int >() );
TQMap<TQString, int> &map = wordMap->operator[]( len );
map[ keywords[ i ] ] = Keyword;
@@ -330,11 +330,11 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
break;
case '1': case '2': case '3': case '4': case '5':
case '6': case '7': case '8': case '9': case '0':
- if ( alphabeth.tqfind( lastChar ) != -1 &&
- ( mathChars.tqfind( lastChar ) == -1 || numbers.tqfind( string->at( i - 1 )->c ) == -1 ) ) {
+ if ( alphabeth.find( lastChar ) != -1 &&
+ ( mathChars.find( lastChar ) == -1 || numbers.find( string->at( i - 1 )->c ) == -1 ) ) {
input = InputAlpha;
} else {
- if ( input == InputAlpha && numbers.tqfind( lastChar ) != -1 )
+ if ( input == InputAlpha && numbers.find( lastChar ) != -1 )
input = InputAlpha;
else
input = InputNumber;
@@ -381,9 +381,9 @@ void SyntaxHighlighter_CPP::process( TQTextDocument *doc, TQTextParagraph *strin
if ( buffer[ 0 ] == 'Q' ) {
string->setFormat( i - buffer.length(), buffer.length(), formatType, FALSE );
} else {
- TQMap<int, TQMap<TQString, int > >::Iterator it = wordMap->tqfind( len );
+ TQMap<int, TQMap<TQString, int > >::Iterator it = wordMap->find( len );
if ( it != wordMap->end() ) {
- TQMap<TQString, int >::Iterator it2 = ( *it ).tqfind( buffer );
+ TQMap<TQString, int >::Iterator it2 = ( *it ).find( buffer );
if ( it2 != ( *it ).end() )
string->setFormat( i - buffer.length(), buffer.length(), format( ( *it2 ) ), FALSE );
}