diff options
Diffstat (limited to 'languages/cpp/typedesc.cpp')
-rw-r--r-- | languages/cpp/typedesc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/languages/cpp/typedesc.cpp b/languages/cpp/typedesc.cpp index 89d32931..b238b734 100644 --- a/languages/cpp/typedesc.cpp +++ b/languages/cpp/typedesc.cpp @@ -150,7 +150,7 @@ TypeDesc::TypeDesc( const TypeDesc& rhs ) { bool TypeDesc::isValidType() const { if ( !m_data ) return false; - if ( m_data->m_cleanName.find( "->" ) != -1 || m_data->m_cleanName.contains( '.' ) || m_data->m_cleanName.contains( ' ' ) || m_data->m_cleanName.isEmpty() ) + if ( m_data->m_cleanName.tqfind( "->" ) != -1 || m_data->m_cleanName.tqcontains( '.' ) || m_data->m_cleanName.tqcontains( ' ' ) || m_data->m_cleanName.isEmpty() ) return false; for ( TemplateParams::const_iterator it = m_data->m_templateParams.begin(); it != m_data->m_templateParams.end(); ++it ) { @@ -238,7 +238,7 @@ size_t TypeDescData::hashKey() { int len = m_cleanName.length(); for ( int a = 0; a < len; a++ ) - ret += m_cleanName[ a ].unicode() * 3 * (11*(a+1)); + ret += m_cleanName[ a ].tqunicode() * 3 * (11*(a+1)); int n = 1; @@ -266,7 +266,7 @@ size_t TypeDescData::hashKey2() { int len = m_cleanName.length(); for ( int a = 0; a < len; a++ ) - ret += m_cleanName[ a ].unicode() * 19 * (7*(a+1)); + ret += m_cleanName[ a ].tqunicode() * 19 * (7*(a+1)); int n = 1; @@ -590,7 +590,7 @@ void TypeDesc::makeDataPrivate() { if ( m_data.count() > 1 ) { m_data = new TypeDescData( *m_data ); } - m_data->invalidateKey(); + m_data->tqinvalidateKey(); } TypeDesc& TypeDesc::makePrivate() { @@ -708,7 +708,7 @@ void TypeDesc::init( TQString stri ) { ///Since function-names are also processed by this function, this check has to be done if( shorten ) { ///Remove any prefixes like const or typename(very limited algorithm) - int len = str.find( "<" ); + int len = str.tqfind( "<" ); if ( len == -1 ) len = str.length(); int currentStart = 0; |