From eaa7ee2e0bbca40ba3173c4304f81957e8964291 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 9 Aug 2011 22:25:47 -0500 Subject: rename the following methods: tqfind find tqreplace replace tqcontains contains --- tqtinterface/qt4/src/tools/tqgpluginmanager.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'tqtinterface/qt4/src/tools/tqgpluginmanager.cpp') diff --git a/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp b/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp index ef0ab02..969d424 100644 --- a/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp +++ b/tqtinterface/qt4/src/tools/tqgpluginmanager.cpp @@ -330,7 +330,7 @@ void TQGPluginManager::addLibraryPath( const TQString& path ) TQStringList plugins = TQDir(path).entryList( filter ); for ( TQStringList::Iterator p = plugins.begin(); p != plugins.end(); ++p ) { TQString lib = TQDir::cleanDirPath( path + "/" + *p ); - if ( libList.tqcontains( lib ) ) + if ( libList.contains( lib ) ) continue; libList.append( lib ); } @@ -376,14 +376,14 @@ const TQLibrary* TQGPluginManager::library( const TQString& feature ) const group.sort(); // sort according to the base name TQStringList::ConstIterator git = group.begin(); while ( git != group.end() ) { - TQString lib = (*git).mid( (*git).tqfind( TQChar(0xfffd) ) + 1 ); - TQString basename = (*git).left( (*git).tqfind( TQChar(0xfffd) ) ); + TQString lib = (*git).mid( (*git).find( TQChar(0xfffd) ) + 1 ); + TQString basename = (*git).left( (*git).find( TQChar(0xfffd) ) ); ++git; TQStringList sameBasename; while( git != group.end() && - basename == (*git).left( (*git).tqfind( TQChar(0xfffd) ) ) ) { - sameBasename << (*git).mid( (*git).tqfind( TQChar(0xfffd) ) + 1 ); + basename == (*git).left( (*git).find( TQChar(0xfffd) ) ) ) { + sameBasename << (*git).mid( (*git).find( TQChar(0xfffd) ) + 1 ); ++git; } @@ -402,7 +402,7 @@ const TQLibrary* TQGPluginManager::library( const TQString& feature ) const && ( !bestMatch || candidate->qtVersion() > bestMatch->qtVersion() ) ) bestMatch = candidate; if ( bestMatch ) { - same.tqfind( bestMatch ); + same.find( bestMatch ); that->addLibrary( same.take() ); } } @@ -444,7 +444,7 @@ TQStringList TQGPluginManager::featureList() const } } for ( it = phase2Libs.begin(); it != phase2Libs.end(); ++it ) - if ( !phase2Deny.tqcontains( TQFileInfo( *it ).baseName() ) ) + if ( !phase2Deny.contains( TQFileInfo( *it ).baseName() ) ) that->addLibrary( new TQComLibrary( *it ) ); for ( TQDictIterator pit( plugDict ); pit.current(); ++pit ) @@ -485,7 +485,7 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib ) TQLibrary *old = plugDict[*f]; if ( !old ) { useful = TRUE; - plugDict.tqreplace( *f, plugin ); + plugDict.replace( *f, plugin ); } else { // we have old *and* plugin, which one to pick? TQComLibrary* first = (TQComLibrary*)old; @@ -500,7 +500,7 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib ) } if ( !takeFirst ) { useful = TRUE; - plugDict.tqreplace( *f, plugin ); + plugDict.replace( *f, plugin ); qWarning("%s: Discarding feature %s in %s!", (const char*) TQFile::encodeName( plugin->library()), (*f).latin1(), @@ -521,8 +521,8 @@ bool TQGPluginManager::addLibrary( TQLibrary* lib ) } if ( useful ) { - libDict.tqreplace( plugin->library(), plugin ); - if ( !libList.tqcontains( plugin->library() ) ) + libDict.replace( plugin->library(), plugin ); + if ( !libList.contains( plugin->library() ) ) libList.append( plugin->library() ); return TRUE; } -- cgit v1.2.1