diff options
Diffstat (limited to 'src/languages/gplink.cpp')
-rw-r--r-- | src/languages/gplink.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/languages/gplink.cpp b/src/languages/gplink.cpp index 9b1859c..7055fa2 100644 --- a/src/languages/gplink.cpp +++ b/src/languages/gplink.cpp @@ -86,13 +86,13 @@ void Gplink::processInput( ProcessOptions options ) bool Gplink::isError( const TQString &message ) const { - return message.tqcontains( "Error", false ); + return message.contains( "Error", false ); } bool Gplink::isWarning( const TQString &message ) const { - return message.tqcontains( "Warning", false ); + return message.contains( "Warning", false ); } @@ -102,18 +102,18 @@ MessageInfo Gplink::extractMessageInfo( const TQString &text ) if ( text.length()<5 || !text.startsWith("/") ) return MessageInfo(); - const int index = text.tqfind( ".asm", 0, false )+4; + const int index = text.find( ".asm", 0, false )+4; if ( index == -1+4 ) return MessageInfo(); const TQString fileName = text.left(index); // Extra line number const TQString message = text.right(text.length()-index); - const int linePos = message.tqfind( TQRegExp(":[\\d]+") ); + const int linePos = message.find( TQRegExp(":[\\d]+") ); int line = -1; if ( linePos != -1 ) { - const int linePosEnd = message.tqfind( ':', linePos+1 ); + const int linePosEnd = message.find( ':', linePos+1 ); if ( linePosEnd != -1 ) { const TQString number = message.mid( linePos+1, linePosEnd-linePos-1 ).stripWhiteSpace(); |