diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:56:07 +0000 |
commit | d6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch) | |
tree | d109539636691d7b03036ca1c0ed29dbae6577cf /languages/cpp/typedecoration.h | |
parent | 3331a47a9cad24795c7440ee8107143ce444ef34 (diff) | |
download | tdevelop-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 'languages/cpp/typedecoration.h')
-rw-r--r-- | languages/cpp/typedecoration.h | 22 |
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 |