diff options
Diffstat (limited to 'parts/outputviews/compileerrorfilter.cpp')
-rw-r--r-- | parts/outputviews/compileerrorfilter.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/parts/outputviews/compileerrorfilter.cpp b/parts/outputviews/compileerrorfilter.cpp index f8246346..9d48f1c8 100644 --- a/parts/outputviews/compileerrorfilter.cpp +++ b/parts/outputviews/compileerrorfilter.cpp @@ -23,7 +23,7 @@ CompileErrorFilter::ErrorFormat::ErrorFormat( const char * regExp, int file, int { } -CompileErrorFilter::ErrorFormat::ErrorFormat( const char * regExp, int file, int line, int text, QString comp ) +CompileErrorFilter::ErrorFormat::ErrorFormat( const char * regExp, int file, int line, int text, TQString comp ) : expression( regExp ) , fileGroup( file ) , lineGroup( line ) @@ -75,13 +75,13 @@ CompileErrorFilter::ErrorFormat* CompileErrorFilter::errorFormats() } -void CompileErrorFilter::processLine( const QString& line ) +void CompileErrorFilter::processLine( const TQString& line ) { bool hasmatch = false; - QString file; + TQString file; int lineNum = 0; - QString text; - QString compiler; + TQString text; + TQString compiler; int i = 0; bool isWarning = false; bool isInstantiationInfo = false; @@ -89,7 +89,7 @@ void CompileErrorFilter::processLine( const QString& line ) ErrorFormat* format = &errFormats[i]; while( !format->expression.isEmpty() ) { - QRegExp& regExp = format->expression; + TQRegExp& regExp = format->expression; if ( regExp.search( line ) != -1 ) { hasmatch = true; @@ -97,7 +97,7 @@ void CompileErrorFilter::processLine( const QString& line ) lineNum = regExp.cap( format->lineGroup ).toInt() - 1; text = regExp.cap( format->textGroup ); compiler = format->compiler; - QString cap = regExp.cap(3); + TQString cap = regExp.cap(3); if (cap.contains("warning:", false) || cap.contains("Warnung:", false)) isWarning = true; if (regExp.cap(3).contains("instantiated from", false)) { @@ -112,8 +112,8 @@ void CompileErrorFilter::processLine( const QString& line ) if( hasmatch ) { // Add hacks for error strings you want excluded here - if( text.find( QString::fromLatin1("(Each undeclared identifier is reported only once") ) >= 0 - || text.find( QString::fromLatin1("for each function it appears in.)") ) >= 0 ) + if( text.find( TQString::fromLatin1("(Each undeclared identifier is reported only once") ) >= 0 + || text.find( TQString::fromLatin1("for each function it appears in.)") ) >= 0 ) hasmatch = false; } |