summaryrefslogtreecommitdiffstats
path: root/languages/cpp/typedecoration.h
diff options
context:
space:
mode:
Diffstat (limited to 'languages/cpp/typedecoration.h')
-rw-r--r--languages/cpp/typedecoration.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/languages/cpp/typedecoration.h b/languages/cpp/typedecoration.h
index 3d2e8382..e142d837 100644
--- a/languages/cpp/typedecoration.h
+++ b/languages/cpp/typedecoration.h
@@ -23,21 +23,21 @@ class TypeDecoration {
}
///Removes the decoration from the given string
- TypeDecoration( QString& str ) {
+ TypeDecoration( TQString& str ) {
init( str );
}
~TypeDecoration() {}
///Removes the decoration from the assigned
- TypeDecoration& operator = ( QString& str ) {
+ TypeDecoration& operator = ( TQString& str ) {
clear();
init( str );
return *this;
}
- QString apply( const QString& str ) const {
- QString ret = str;
+ TQString apply( const TQString& str ) const {
+ TQString ret = str;
if ( !ret.startsWith( m_decoration_front ) )
ret = m_decoration_front + ret;
@@ -54,11 +54,11 @@ class TypeDecoration {
}
void clear() {
- m_decoration_front = QString();
- m_decoration_back = QString();
+ m_decoration_front = TQString();
+ m_decoration_back = TQString();
}
- void prepend( const QString& str ) {
+ void prepend( const TQString& str ) {
m_decoration_front = str + m_decoration_front;
}
@@ -70,11 +70,11 @@ class TypeDecoration {
}*/
private:
- void init( QString& str ) {
+ void init( TQString& str ) {
str = str.stripWhiteSpace();
- static const QString cnst = "const";
- static const QString ref = "&";
+ static const TQString cnst = "const";
+ static const TQString ref = "&";
if ( str.startsWith( cnst ) ) {
str.remove( 0, cnst.length() );
if( str.isEmpty() || ( !str[0].isLetterOrNumber() && str[0] != '_' ) ) {
@@ -111,7 +111,7 @@ class TypeDecoration {
}
}
- QString m_decoration_front, m_decoration_back;
+ TQString m_decoration_front, m_decoration_back;
};
#endif