diff options
Diffstat (limited to 'src/languages/gplink.cpp')
-rw-r--r-- | src/languages/gplink.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/languages/gplink.cpp b/src/languages/gplink.cpp index 548449a..9b1859c 100644 --- a/src/languages/gplink.cpp +++ b/src/languages/gplink.cpp @@ -16,8 +16,8 @@ #include <kmessagebox.h> #include <kprocess.h> -Gplink::Gplink( ProcessChain *processChain, KTechlab * parent ) - : ExternalLanguage( processChain, parent, "Gpasm" ) +Gplink::Gplink( ProcessChain *processChain, KTechlab * tqparent ) + : ExternalLanguage( processChain, tqparent, "Gpasm" ) { m_successfulMessage = i18n("*** Linking successful ***"); m_failedMessage = i18n("*** Linking failed ***"); @@ -65,14 +65,14 @@ void Gplink::processInput( ProcessOptions options ) *m_languageProcess << ( options.intermediaryOutput() ); // Input object file - const QStringList inputFiles = options.inputFiles(); - QStringList::const_iterator end = inputFiles.end(); - for ( QStringList::const_iterator it = inputFiles.begin(); it != end; ++it ) + const TQStringList inputFiles = options.inputFiles(); + TQStringList::const_iterator end = inputFiles.end(); + for ( TQStringList::const_iterator it = inputFiles.begin(); it != end; ++it ) *m_languageProcess << ( *it ); // Other libraries end = options.m_linkLibraries.end(); - for ( QStringList::const_iterator it = options.m_linkLibraries.begin(); it != end; ++it ) + for ( TQStringList::const_iterator it = options.m_linkLibraries.begin(); it != end; ++it ) *m_languageProcess << ( *it ); if ( !start() ) @@ -84,39 +84,39 @@ void Gplink::processInput( ProcessOptions options ) } -bool Gplink::isError( const QString &message ) const +bool Gplink::isError( const TQString &message ) const { - return message.contains( "Error", false ); + return message.tqcontains( "Error", false ); } -bool Gplink::isWarning( const QString &message ) const +bool Gplink::isWarning( const TQString &message ) const { - return message.contains( "Warning", false ); + return message.tqcontains( "Warning", false ); } -MessageInfo Gplink::extractMessageInfo( const QString &text ) +MessageInfo Gplink::extractMessageInfo( const TQString &text ) { #if 0 if ( text.length()<5 || !text.startsWith("/") ) return MessageInfo(); - const int index = text.find( ".asm", 0, false )+4; + const int index = text.tqfind( ".asm", 0, false )+4; if ( index == -1+4 ) return MessageInfo(); - const QString fileName = text.left(index); + const TQString fileName = text.left(index); // Extra line number - const QString message = text.right(text.length()-index); - const int linePos = message.find( QRegExp(":[\\d]+") ); + const TQString message = text.right(text.length()-index); + const int linePos = message.tqfind( TQRegExp(":[\\d]+") ); int line = -1; if ( linePos != -1 ) { - const int linePosEnd = message.find( ':', linePos+1 ); + const int linePosEnd = message.tqfind( ':', linePos+1 ); if ( linePosEnd != -1 ) { - const QString number = message.mid( linePos+1, linePosEnd-linePos-1 ).stripWhiteSpace(); + const TQString number = message.mid( linePos+1, linePosEnd-linePos-1 ).stripWhiteSpace(); bool ok; line = number.toInt(&ok)-1; if (!ok) line = -1; |