summaryrefslogtreecommitdiffstats
path: root/languages/cpp/typedesc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/typedesc.cpp')
-rw-r--r--languages/cpp/typedesc.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/languages/cpp/typedesc.cpp b/languages/cpp/typedesc.cpp
index 2e4e28a0..89d32931 100644
--- a/languages/cpp/typedesc.cpp
+++ b/languages/cpp/typedesc.cpp
@@ -21,7 +21,7 @@
#include "driver.h"
#include "lexer.h"
#include "parser.h"
-#include <qtextstream.h>
+#include <tqtextstream.h>
#include <kglobal.h>
@@ -139,7 +139,7 @@ TypeTrace* LocateResult::trace() {
TypeDesc::TypeDesc() {}
-TypeDesc::TypeDesc( const QString& name ) {
+TypeDesc::TypeDesc( const TQString& name ) {
init( name );
}
@@ -169,7 +169,7 @@ TypeDesc& TypeDesc::operator = ( const TypeDesc& rhs ) {
return *this;
}
-void TypeDesc::prependDecoration( const QString& str ) {
+void TypeDesc::prependDecoration( const TQString& str ) {
makePrivate();
m_data->m_dec.prepend( str );
}
@@ -350,13 +350,13 @@ int TypeDesc::compare ( const TypeDesc& rhs ) const {
}
#ifdef USE_TEXT_STREAM
-QString TypeDesc::nameWithParams() const {
+TQString TypeDesc::nameWithParams() const {
if ( !m_data )
return "";
- QString ret;
+ TQString ret;
{
- QTextStream s( &ret, IO_WriteOnly );
+ TQTextStream s( &ret, IO_WriteOnly );
s << m_data->m_cleanName;
if ( !m_data->m_templateParams.isEmpty() ) {
s << "<";
@@ -375,14 +375,14 @@ QString TypeDesc::nameWithParams() const {
#else
-QString TypeDesc::nameWithParams() const {
+TQString TypeDesc::nameWithParams() const {
if( compare( *this ) != 0 ) {
compare( *this );
}
if ( !m_data )
return "";
- QString ret = m_data->m_cleanName;
+ TQString ret = m_data->m_cleanName;
if ( !m_data->m_templateParams.isEmpty() ) {
ret += "<";
bool first = true;
@@ -399,13 +399,13 @@ QString TypeDesc::nameWithParams() const {
#endif
-QString TypeDesc::fullName( ) const {
+TQString TypeDesc::fullName( ) const {
if ( !m_data )
return "";
- QString ret = nameWithParams();
+ TQString ret = nameWithParams();
for ( int a = 0; a < m_data->m_functionDepth; ++a )
- ret = QString( functionMark ) + ret;
+ ret = TQString( functionMark ) + ret;
for ( int a = 0; a < m_data->m_pointerDepth; ++a )
ret += "*";
return m_data->m_dec.apply( ret );
@@ -427,21 +427,21 @@ size_t TypeDesc::hashKey2() const {
return ret;
}
-QString TypeDesc::fullNameChain( ) const {
+TQString TypeDesc::fullNameChain( ) const {
if ( !m_data )
return "";
- QString ret = fullName();
+ TQString ret = fullName();
if ( m_data->m_nextType ) {
ret += "::" + m_data->m_nextType->fullNameChain();
}
return m_data->m_dec.apply( ret );
}
-QString TypeDesc::fullTypeStructure() const {
+TQString TypeDesc::fullTypeStructure() const {
if ( !m_data )
return "";
- QString ret = m_data->m_cleanName;
+ TQString ret = m_data->m_cleanName;
if ( !m_data->m_templateParams.isEmpty() ) {
ret += "<";
for ( TemplateParams::const_iterator it = m_data->m_templateParams.begin(); it != m_data->m_templateParams.end(); ++it ) {
@@ -455,10 +455,10 @@ QString TypeDesc::fullTypeStructure() const {
}
-QStringList TypeDesc::fullNameList( ) const {
+TQStringList TypeDesc::fullNameList( ) const {
if ( !m_data )
return "";
- QStringList ret;
+ TQStringList ret;
ret << fullName();
if ( m_data->m_nextType ) {
ret += m_data->m_nextType->fullNameList();
@@ -575,7 +575,7 @@ void TypeDesc::clearInstanceInfo() {
m_data->m_dec.clear();
}
-void TypeDesc::takeTemplateParams( const QString& string ) {
+void TypeDesc::takeTemplateParams( const TQString& string ) {
makeDataPrivate();
m_data->m_templateParams.clear();
for ( ParamIterator it( "<>", string ); it; ++it )
@@ -650,7 +650,7 @@ int TypeDesc::decorationDepth() {
return m_data->m_dec.depth();
}*/
-void TypeDesc::init( QString stri ) {
+void TypeDesc::init( TQString stri ) {
m_data = 0;
maybeInit();
@@ -659,8 +659,8 @@ void TypeDesc::init( QString stri ) {
m_data->m_dec = stri; ///Store the decoration
- QStringList ls = splitType( stri );
- QString str = ls.front().stripWhiteSpace();
+ TQStringList ls = splitType( stri );
+ TQString str = ls.front().stripWhiteSpace();
///Extract multiple types that may be written as a scope and put them to the next-types-list
if ( !ls.isEmpty() ) {
@@ -670,7 +670,7 @@ void TypeDesc::init( QString stri ) {
}
}
- while ( str.startsWith( QString( functionMark ) ) ) {
+ while ( str.startsWith( TQString( functionMark ) ) ) {
m_data->m_functionDepth++;
str = str.mid( strlen( functionMark ) ).stripWhiteSpace();
}
@@ -678,7 +678,7 @@ void TypeDesc::init( QString stri ) {
//Little hack done for performance-reasons, to do less comparing
if( str.length() >= 4 ) {
- QChar c = str[0];
+ TQChar c = str[0];
switch( c.latin1() ) {
case 's':
if( str[1] == 'h' ) {
@@ -735,10 +735,10 @@ void TypeDesc::init( QString stri ) {
if ( parser.parseTypeSpecifier( typeSpec ) ) {
NameAST * name = typeSpec->name();
- QPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
- QPtrListIterator<ClassOrNamespaceNameAST> it( l );
+ TQPtrList<ClassOrNamespaceNameAST> l = name->classOrNamespaceNameList();
+ TQPtrListIterator<ClassOrNamespaceNameAST> it( l );
- QString type;
+ TQString type;
while ( it.current() ) {
if ( it.current() ->name() ) {
type += it.current() ->name() ->text() + "::";
@@ -766,11 +766,11 @@ void TypeDesc::init( QString stri ) {
}
-void TypeDesc::takeData( const QString& string ) {
+void TypeDesc::takeData( const TQString& string ) {
makeDataPrivate();
m_data->m_templateParams.clear();
ParamIterator it( "<>", string );
- QString name = it.prefix();
+ TQString name = it.prefix();
name.remove( "*" );
name.remove( "&" );
m_data->m_cleanName = name.stripWhiteSpace();