diff options
Diffstat (limited to 'languages/java/driver.cpp')
-rw-r--r-- | languages/java/driver.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/languages/java/driver.cpp b/languages/java/driver.cpp index ee49625d..f856fc74 100644 --- a/languages/java/driver.cpp +++ b/languages/java/driver.cpp @@ -23,9 +23,9 @@ #include <kdebug.h> #include <stdlib.h> -#include <qfile.h> -#include <qfileinfo.h> -#include <qdir.h> +#include <tqfile.h> +#include <tqfileinfo.h> +#include <tqdir.h> #include <string> #include <sstream> @@ -35,20 +35,20 @@ class DefaultSourceProvider: public SourceProvider public: DefaultSourceProvider() {} - virtual QString contents( const QString& fileName ) + virtual TQString contents( const TQString& fileName ) { - QString source; + TQString source; - QFile f( fileName ); + TQFile f( fileName ); if( f.open(IO_ReadOnly) ){ - QTextStream s( &f ); + TQTextStream s( &f ); source = s.read(); f.close(); } return source; } - virtual bool isModified( const QString& fileName ) + virtual bool isModified( const TQString& fileName ) { Q_UNUSED( fileName ); return true; @@ -96,11 +96,11 @@ void Driver::reset( ) } } -void Driver::remove( const QString & fileName ) +void Driver::remove( const TQString & fileName ) { m_problems.remove( fileName ); - QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName ); + TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName ); if( it != m_parsedUnits.end() ){ RefJavaAST unit = *it; m_parsedUnits.remove( it ); @@ -108,51 +108,51 @@ void Driver::remove( const QString & fileName ) } } -RefJavaAST Driver::takeTranslationUnit( const QString& fileName ) +RefJavaAST Driver::takeTranslationUnit( const TQString& fileName ) { - QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName ); + TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName ); RefJavaAST unit( *it ); //m_parsedUnits.remove( it ); m_parsedUnits[ fileName] = 0; return unit; } -RefJavaAST Driver::translationUnit( const QString& fileName ) const +RefJavaAST Driver::translationUnit( const TQString& fileName ) const { - QMap<QString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName ); + TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName ); return it != m_parsedUnits.end() ? *it : RefJavaAST(); } -void Driver::addProblem( const QString & fileName, const Problem & problem ) +void Driver::addProblem( const TQString & fileName, const Problem & problem ) { findOrInsertProblemList( fileName ).append( problem ); } -QValueList < Problem >& Driver::findOrInsertProblemList( const QString & fileName ) +TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileName ) { - QMap<QString, QValueList<Problem> >::Iterator it = m_problems.find( fileName ); + TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.find( fileName ); if( it != m_problems.end() ) return it.data(); - QValueList<Problem> l; + TQValueList<Problem> l; m_problems.insert( fileName, l ); return m_problems[ fileName ]; } -QValueList < Problem > Driver::problems( const QString & fileName ) const +TQValueList < Problem > Driver::problems( const TQString & fileName ) const { - QMap<QString, QValueList<Problem> >::ConstIterator it = m_problems.find( fileName ); + TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.find( fileName ); if( it != m_problems.end() ) return it.data(); - return QValueList<Problem>(); + return TQValueList<Problem>(); } -void Driver::parseFile( const QString& fileName, bool onlyPreProcess, bool force ) +void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool force ) { - QFileInfo fileInfo( fileName ); - QString absFilePath = fileInfo.absFilePath(); + TQFileInfo fileInfo( fileName ); + TQString absFilePath = fileInfo.absFilePath(); - QMap<QString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath ); + TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath ); if( force && it != m_parsedUnits.end() ){ takeTranslationUnit( absFilePath ); @@ -199,7 +199,7 @@ void Driver::parseFile( const QString& fileName, bool onlyPreProcess, bool force } - m_currentFileName = QString::null; + m_currentFileName = TQString::null; lexer = 0; fileParsed( fileName ); @@ -215,13 +215,13 @@ void Driver::setupParser( JavaRecognizer * parser ) Q_UNUSED( parser ); } -void Driver::addIncludePath( const QString &path ) +void Driver::addIncludePath( const TQString &path ) { if( !path.stripWhiteSpace().isEmpty() ) m_includePaths << path; } -void Driver::fileParsed( const QString & fileName ) +void Driver::fileParsed( const TQString & fileName ) { Q_UNUSED( fileName ); } |