From d6f8bbb45b267065a6907e71ff9c98bb6d161241 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:56:07 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/computerecoverypoints.h | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'languages/cpp/computerecoverypoints.h') diff --git a/languages/cpp/computerecoverypoints.h b/languages/cpp/computerecoverypoints.h index eccd44f6..4e2056d5 100644 --- a/languages/cpp/computerecoverypoints.h +++ b/languages/cpp/computerecoverypoints.h @@ -22,20 +22,20 @@ #ifndef __COMPUTERECOVERYPOINTS_H__ #define __COMPUTERECOVERYPOINTS_H__ -#include +#include #include "simpletype.h" #include "simpletypenamespace.h" #include "tree_parser.h" -static QString toSimpleName( NameAST* name ) +static TQString toSimpleName( NameAST* name ) { if ( !name ) - return QString::null; + return TQString::null; - QString s; - QPtrList l = name->classOrNamespaceNameList(); - QPtrListIterator nameIt( l ); + TQString s; + TQPtrList l = name->classOrNamespaceNameList(); + TQPtrListIterator nameIt( l ); while ( nameIt.current() ) { if ( nameIt.current() ->name() ) @@ -55,8 +55,8 @@ static QString toSimpleName( NameAST* name ) struct RecoveryPoint { int kind; - QStringList scope; - QValueList imports; + TQStringList scope; + TQValueList imports; int startLine, startColumn; int endLine, endColumn; @@ -67,15 +67,15 @@ struct RecoveryPoint {} ///Registers the recovery-points imports into the given namespace - void registerImports( SimpleType ns, QString hardCodedAliases ) { + void registerImports( SimpleType ns, TQString hardCodedAliases ) { SimpleTypeNamespace* n = dynamic_cast( &(*ns) ); if( !n ) { kdDebug( 9007 ) << "the global namespace was not resolved correctly " << endl; } else { ///put the imports into the global namespace - for( QValueList::iterator it = imports.begin(); it != imports.end(); ++it ) { + for( TQValueList::iterator it = imports.begin(); it != imports.end(); ++it ) { kdDebug( 9007 ) << "inserting import " << *it << " into the global scope" << endl; - n->addAliasMap( QString(""), (*it).join("::"), IncludeFiles() ); ///@TODO: remove this + n->addAliasMap( TQString(""), (*it).join("::"), IncludeFiles() ); ///@TODO: remove this } n->addAliases( hardCodedAliases ); } @@ -91,13 +91,13 @@ private: class ComputeRecoveryPoints: public TreeParser { public: - ComputeRecoveryPoints( QPtrList& points ) + ComputeRecoveryPoints( TQPtrList& points ) : recoveryPoints( points ) {} virtual void parseTranslationUnit( const ParsedFile& ast ) { - QValueList dummy; + TQValueList dummy; m_imports.push( dummy ); TreeParser::parseTranslationUnit( ast ); @@ -111,7 +111,7 @@ public: if ( !ast->name() ) return ; - //QStringList type = CppCodeCompletion::typeName( ast->name() ->text() ).scope(); + //TQStringList type = CppCodeCompletion::typeName( ast->name() ->text() ).scope(); m_imports.top().push_back( ast->name() ->text() ); } @@ -181,9 +181,9 @@ public: } private: - QPtrList& recoveryPoints; - QValueStack< QValueList > m_imports; - QStringList m_currentScope; + TQPtrList& recoveryPoints; + TQValueStack< TQValueList > m_imports; + TQStringList m_currentScope; }; #endif -- cgit v1.2.3