diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/java/driver.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'languages/java/driver.cpp')
-rw-r--r-- | languages/java/driver.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/languages/java/driver.cpp b/languages/java/driver.cpp index f856fc74..9a4bccdf 100644 --- a/languages/java/driver.cpp +++ b/languages/java/driver.cpp @@ -100,7 +100,7 @@ void Driver::remove( const TQString & fileName ) { m_problems.remove( fileName ); - TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName ); + TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.tqfind( fileName ); if( it != m_parsedUnits.end() ){ RefJavaAST unit = *it; m_parsedUnits.remove( it ); @@ -110,7 +110,7 @@ void Driver::remove( const TQString & fileName ) RefJavaAST Driver::takeTranslationUnit( const TQString& fileName ) { - TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( fileName ); + TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.tqfind( fileName ); RefJavaAST unit( *it ); //m_parsedUnits.remove( it ); m_parsedUnits[ fileName] = 0; @@ -119,7 +119,7 @@ RefJavaAST Driver::takeTranslationUnit( const TQString& fileName ) RefJavaAST Driver::translationUnit( const TQString& fileName ) const { - TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.find( fileName ); + TQMap<TQString, RefJavaAST>::ConstIterator it = m_parsedUnits.tqfind( fileName ); return it != m_parsedUnits.end() ? *it : RefJavaAST(); } @@ -130,7 +130,7 @@ void Driver::addProblem( const TQString & fileName, const Problem & problem ) TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileName ) { - TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.find( fileName ); + TQMap<TQString, TQValueList<Problem> >::Iterator it = m_problems.tqfind( fileName ); if( it != m_problems.end() ) return it.data(); @@ -141,7 +141,7 @@ TQValueList < Problem >& Driver::findOrInsertProblemList( const TQString & fileN TQValueList < Problem > Driver::problems( const TQString & fileName ) const { - TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.find( fileName ); + TQMap<TQString, TQValueList<Problem> >::ConstIterator it = m_problems.tqfind( fileName ); if( it != m_problems.end() ) return it.data(); return TQValueList<Problem>(); @@ -152,7 +152,7 @@ void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool forc TQFileInfo fileInfo( fileName ); TQString absFilePath = fileInfo.absFilePath(); - TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.find( absFilePath ); + TQMap<TQString, RefJavaAST>::Iterator it = m_parsedUnits.tqfind( absFilePath ); if( force && it != m_parsedUnits.end() ){ takeTranslationUnit( absFilePath ); @@ -199,7 +199,7 @@ void Driver::parseFile( const TQString& fileName, bool onlyPreProcess, bool forc } - m_currentFileName = TQString::null; + m_currentFileName = TQString(); lexer = 0; fileParsed( fileName ); |