From e05894553004a47b1e2f276bedcf5963b57a3932 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/languages/gplib.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/languages/gplib.cpp') diff --git a/src/languages/gplib.cpp b/src/languages/gplib.cpp index 46e6a76..919efee 100644 --- a/src/languages/gplib.cpp +++ b/src/languages/gplib.cpp @@ -55,13 +55,13 @@ void Gplib::processInput( ProcessOptions options ) bool Gplib::isError( const TQString &message ) const { - return message.tqcontains( "Error", false ); + return message.contains( "Error", false ); } bool Gplib::isWarning( const TQString &message ) const { - return message.tqcontains( "Warning", false ); + return message.contains( "Warning", false ); } @@ -71,18 +71,18 @@ MessageInfo Gplib::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(); -- cgit v1.2.1