diff options
Diffstat (limited to 'languages/cpp/computerecoverypoints.h')
-rw-r--r-- | languages/cpp/computerecoverypoints.h | 34 |
1 files changed, 17 insertions, 17 deletions
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 <qvaluestack.h> +#include <tqvaluestack.h> #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<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList(); - QPtrListIterator<ClassOrNamespaceNameAST> nameIt( l ); + TQString s; + TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList(); + TQPtrListIterator<ClassOrNamespaceNameAST> 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<QStringList> imports; + TQStringList scope; + TQValueList<TQStringList> 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<SimpleTypeNamespace*>( &(*ns) ); if( !n ) { kdDebug( 9007 ) << "the global namespace was not resolved correctly " << endl; } else { ///put the imports into the global namespace - for( QValueList<QStringList>::iterator it = imports.begin(); it != imports.end(); ++it ) { + for( TQValueList<TQStringList>::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<RecoveryPoint>& points ) + ComputeRecoveryPoints( TQPtrList<RecoveryPoint>& points ) : recoveryPoints( points ) {} virtual void parseTranslationUnit( const ParsedFile& ast ) { - QValueList<QStringList> dummy; + TQValueList<TQStringList> 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<RecoveryPoint>& recoveryPoints; - QValueStack< QValueList<QStringList> > m_imports; - QStringList m_currentScope; + TQPtrList<RecoveryPoint>& recoveryPoints; + TQValueStack< TQValueList<TQStringList> > m_imports; + TQStringList m_currentScope; }; #endif |