summaryrefslogtreecommitdiffstats
path: root/languages/cpp/store_walker.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/cpp/store_walker.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-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/cpp/store_walker.cpp')
-rw-r--r--languages/cpp/store_walker.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/languages/cpp/store_walker.cpp b/languages/cpp/store_walker.cpp
index bcea1a05..e0c9bfd6 100644
--- a/languages/cpp/store_walker.cpp
+++ b/languages/cpp/store_walker.cpp
@@ -53,7 +53,7 @@ void StoreWalker::parseTranslationUnit( const ParsedFile& ast )
m_anon = 0;
m_imports.clear();
- m_imports << QPair<TQMap<TQString, ClassDom>, TQStringList>(TQMap<TQString, ClassDom>(), TQStringList());
+ m_imports << TQPair<TQMap<TQString, ClassDom>, TQStringList>(TQMap<TQString, ClassDom>(), TQStringList());
TreeParser::parseTranslationUnit( ast );
m_imports.pop_back();
}
@@ -519,7 +519,7 @@ void StoreWalker::parseClassSpecifier( ClassSpecifierAST* ast )
klass->setEndPosition( endLine, endColumn );
klass->setFileName( m_fileName );
- int i = className.find( '<' );
+ int i = className.tqfind( '<' );
if( i != -1 ) {
klass->setSpecializationDeclaration( className.mid( i ) );
className = className.left( i );
@@ -900,7 +900,7 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
if ( param->declarator() )
{
- TQString text = declaratorToString( param->declarator(), TQString::null, true );
+ TQString text = declaratorToString( param->declarator(), TQString(), true );
if ( !text.isEmpty() )
arg->setName( text );
}
@@ -917,7 +917,7 @@ void StoreWalker::parseFunctionArguments( DeclaratorAST* declarator, FunctionDom
TQString StoreWalker::typeOfDeclaration( TypeSpecifierAST* typeSpec, DeclaratorAST* declarator )
{
if ( !typeSpec || !declarator )
- return TQString::null;
+ return TQString();
TQString text;
@@ -982,7 +982,7 @@ ClassDom StoreWalker::findClassFromScope( const TQStringList& scope )
{
TQString scopeText = scope.join("::");
if( !m_imports.isEmpty() ) {
- TQMapIterator<TQString, ClassDom> it = m_imports.back().first.find( scopeText );
+ TQMapIterator<TQString, ClassDom> it = m_imports.back().first.tqfind( scopeText );
if( it != m_imports.back().first.end() ) {
return *it;
}
@@ -1052,7 +1052,7 @@ ClassDom StoreWalker::classFromScope(const TQStringList& scope) {
if( c ) {
///Check the file that overrides the code-model file
- it = m_overrides.find( c->fileName() );
+ it = m_overrides.tqfind( c->fileName() );
//Find the class within the file that is overriding the one in code-model.
if( it != m_overrides.end() ) {