From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: TQt4 port kdevelop This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- lib/interfaces/hashedstring.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/interfaces/hashedstring.cpp') diff --git a/lib/interfaces/hashedstring.cpp b/lib/interfaces/hashedstring.cpp index aae068a3..723dd28b 100644 --- a/lib/interfaces/hashedstring.cpp +++ b/lib/interfaces/hashedstring.cpp @@ -30,7 +30,7 @@ size_t hashStringSafe( const TQString& str ) { size_t hash = 0; int len = str.length(); for( int a = 0; a < len; a++ ) { - hash = str[a].unicode() + (hash * 17); + hash = str[a].tqunicode() + (hash * 17); } return hash; } @@ -43,12 +43,12 @@ size_t HashedString::hashString( const TQString& str ) size_t fastHashString( const TQString& str ) { size_t hash = 0; if( !str.isEmpty() ) { - const TQChar* curr = str.unicode(); + const TQChar* curr = str.tqunicode(); const TQChar* end = curr + str.length(); TQChar c; for(; curr < end ;) { c = *curr; - hash = c.unicode() + ( hash * 17 ); + hash = c.tqunicode() + ( hash * 17 ); ++curr; } } @@ -72,7 +72,7 @@ class HashedStringSetData : public KShared { mutable size_t m_hash; HashedStringSetData() : m_hashValid( false ) { } - inline void invalidateHash() { + inline void tqinvalidateHash() { m_hashValid = false; } @@ -180,7 +180,7 @@ void HashedStringSet::insert( const HashedString& str ) { if( str.str().isEmpty() ) return; makeDataPrivate(); m_data->m_files.insert( str ); - m_data->invalidateHash(); + m_data->tqinvalidateHash(); } bool HashedStringSet::operator <= ( const HashedStringSet& rhs ) const { -- cgit v1.2.1