From 330c33ab6f97b279737bf9527c9add7bb1475450 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- languages/cpp/cppsupportpart.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'languages/cpp/cppsupportpart.h') diff --git a/languages/cpp/cppsupportpart.h b/languages/cpp/cppsupportpart.h index 6e2ee964..650831e8 100644 --- a/languages/cpp/cppsupportpart.h +++ b/languages/cpp/cppsupportpart.h @@ -143,7 +143,7 @@ public: m_fileSet.insert( s ); } - bool tqcontains( const HashedString& str ) const { + bool contains( const HashedString& str ) const { TQMutexLocker locker( &m_mutex ); return m_fileSet.find( str ) != m_fileSet.end(); } @@ -512,7 +512,7 @@ private: ///files that were not requested must not be processed, since they maybe do not respect the group-relationships. bool reject( TQString file ) { for( List::iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) { - if( (*it).first.tqfind( file ) != (*it).first.end() ) { + if( (*it).first.find( file ) != (*it).first.end() ) { return false; } } @@ -522,7 +522,7 @@ private: bool waiting( TQString file, Flags forbidFlags = None, int count = 1 ) const { int hits = 0; for( List::const_iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) { - if( (*it).first.tqfind( file ) != (*it).first.end() ) { + if( (*it).first.find( file ) != (*it).first.end() ) { if( ((Flags)((*it).flags & forbidFlags )) == None ) { hits++; if( hits >= count ) return true; @@ -577,8 +577,8 @@ private: Processed processFile( TQString file, Flags flag = None ) { TQStringList ret; for( List::iterator it = m_waiting.begin(); it != m_waiting.end(); ++it) { - if( (*it).first.tqfind( file ) != (*it).first.end() ) { - if( (*it).second.tqfind( file ) == (*it).second.end() ) { + if( (*it).first.find( file ) != (*it).first.end() ) { + if( (*it).second.find( file ) == (*it).second.end() ) { (*it).flags = (Flags) ((*it).flags | flag); (*it).second << file; if( (*it).second.count() == (*it).first.count() ) { -- cgit v1.2.3