summaryrefslogtreecommitdiffstats
path: root/lib/cppparser/ast.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /lib/cppparser/ast.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'lib/cppparser/ast.cpp')
-rw-r--r--lib/cppparser/ast.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/lib/cppparser/ast.cpp b/lib/cppparser/ast.cpp
index 978d9408..209a8a99 100644
--- a/lib/cppparser/ast.cpp
+++ b/lib/cppparser/ast.cpp
@@ -18,10 +18,10 @@
*/
#include "ast.h"
-#include <qstringlist.h>
+#include <tqstringlist.h>
#include <kdebug.h>
-QString nodeTypeToString( int type )
+TQString nodeTypeToString( int type )
{
switch( type )
{
@@ -125,7 +125,7 @@ QString nodeTypeToString( int type )
return "Custom";
}
- return QString::null;
+ return TQString::null;
}
@@ -232,18 +232,18 @@ void NameAST::addClassOrNamespaceName( ClassOrNamespaceNameAST::Node& classOrNam
m_classOrNamespaceNameList.append( classOrNamespaceName.release() );
}
-QString NameAST::text() const
+TQString NameAST::text() const
{
if( !m_unqualifiedName.get() )
- return QString::null;
+ return TQString::null;
- QString str;
+ TQString str;
if( m_global )
str += "::";
- QStringList l;
- QPtrListIterator<ClassOrNamespaceNameAST> it( m_classOrNamespaceNameList );
+ TQStringList l;
+ TQPtrListIterator<ClassOrNamespaceNameAST> it( m_classOrNamespaceNameList );
while( it.current() ){
str += it.current()->text() + "::";
++it;
@@ -414,11 +414,11 @@ void TemplateArgumentListAST::addArgument( AST::Node& arg )
m_argumentList.append( arg.release() );
}
-QString TemplateArgumentListAST::text() const
+TQString TemplateArgumentListAST::text() const
{
- QStringList l;
+ TQStringList l;
- QPtrListIterator<AST> it( m_argumentList );
+ TQPtrListIterator<AST> it( m_argumentList );
while( it.current() ){
l.append( it.current()->text() );
++it;
@@ -467,14 +467,14 @@ void ClassOrNamespaceNameAST::setTemplateArgumentList( TemplateArgumentListAST::
if( m_templateArgumentList.get() ) m_templateArgumentList->setParent( this );
}
-QString ClassOrNamespaceNameAST::text() const
+TQString ClassOrNamespaceNameAST::text() const
{
if( !m_name.get() )
- return QString::null;
+ return TQString::null;
- QString str = m_name->text();
+ TQString str = m_name->text();
if( m_templateArgumentList.get() )
- str += QString::fromLatin1("< ") + m_templateArgumentList->text() + QString::fromLatin1(" >");
+ str += TQString::fromLatin1("< ") + m_templateArgumentList->text() + TQString::fromLatin1(" >");
return str;
}
@@ -496,9 +496,9 @@ void TypeSpecifierAST::setCv2Qualify( GroupAST::Node& cv2Qualify )
if( m_cv2Qualify.get() ) m_cv2Qualify->setParent( this );
}
-QString TypeSpecifierAST::text() const
+TQString TypeSpecifierAST::text() const
{
- QString str;
+ TQString str;
if( m_cvQualify.get() )
str += m_cvQualify->text() + " ";
@@ -507,7 +507,7 @@ QString TypeSpecifierAST::text() const
str += m_name->text();
if( m_cv2Qualify.get() )
- str += QString(" ") + m_cv2Qualify->text();
+ str += TQString(" ") + m_cv2Qualify->text();
return str;
}
@@ -566,7 +566,7 @@ void ElaboratedTypeSpecifierAST::setKind( AST::Node& kind )
if( m_kind.get() ) m_kind->setParent( this );
}
-QString ElaboratedTypeSpecifierAST::text() const
+TQString ElaboratedTypeSpecifierAST::text() const
{
if( m_kind.get() )
return m_kind->text() + " " + TypeSpecifierAST::text();
@@ -1040,9 +1040,9 @@ void ParameterDeclarationAST::setExpression( AST::Node& expression )
if( m_expression.get() ) m_expression->setParent( this );
}
-QString ParameterDeclarationAST::text() const
+TQString ParameterDeclarationAST::text() const
{
- QString str;
+ TQString str;
if( m_typeSpec.get() )
str += m_typeSpec->text() + " ";
@@ -1050,7 +1050,7 @@ QString ParameterDeclarationAST::text() const
str += m_declarator->text();
if( m_expression.get() )
- str += QString( " = " ) + m_expression->text();
+ str += TQString( " = " ) + m_expression->text();
return str;
}
@@ -1070,11 +1070,11 @@ void ParameterDeclarationListAST::addParameter( ParameterDeclarationAST::Node& p
m_parameterList.append( parameter.release() );
}
-QString ParameterDeclarationListAST::text() const
+TQString ParameterDeclarationListAST::text() const
{
- QStringList l;
+ TQStringList l;
- QPtrListIterator<ParameterDeclarationAST> it( m_parameterList );
+ TQPtrListIterator<ParameterDeclarationAST> it( m_parameterList );
while( it.current() ){
l.append( it.current()->text() );
++it;
@@ -1101,9 +1101,9 @@ void ParameterDeclarationClauseAST::setEllipsis( AST::Node& ellipsis )
if( m_ellipsis.get() ) m_ellipsis->setParent( this );
}
-QString ParameterDeclarationClauseAST::text() const
+TQString ParameterDeclarationClauseAST::text() const
{
- QString str;
+ TQString str;
if( m_parameterDeclarationList.get() )
str += m_parameterDeclarationList->text();
@@ -1130,11 +1130,11 @@ void GroupAST::addNode( AST::Node& node )
m_nodeList.append( node.release() );
}
-QString GroupAST::text() const
+TQString GroupAST::text() const
{
- QStringList l;
+ TQStringList l;
- QPtrListIterator<AST> it( m_nodeList );
+ TQPtrListIterator<AST> it( m_nodeList );
while( it.current() ){
l.append( it.current()->text() );
++it;
@@ -1158,11 +1158,11 @@ void AccessDeclarationAST::addAccess( AST::Node& access )
m_accessList.append( access.release() );
}
-QString AccessDeclarationAST::text() const
+TQString AccessDeclarationAST::text() const
{
- QStringList l;
+ TQStringList l;
- QPtrListIterator<AST> it( m_accessList );
+ TQPtrListIterator<AST> it( m_accessList );
while( it.current() ){
l.append( it.current()->text() );
++it;