From a66f7ec245037f5a3d9c57717d749d4f7d06f2ca 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/applications/kde-style-qtcurve@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- common/config_file.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'common/config_file.c') diff --git a/common/config_file.c b/common/config_file.c index 98948ab..a144ae6 100644 --- a/common/config_file.c +++ b/common/config_file.c @@ -600,7 +600,7 @@ static bool makeDir(const TQString& dir, int mode) #if 0x039999 >= 0x040000 int pos = target.indexOf('/', i); #else - int pos = target.tqfind('/', i); + int pos = target.find('/', i); #endif base += target.mid(i - 1, pos - i + 1); TQByteArray baseEncoded = TQFile::encodeName(base); @@ -892,7 +892,7 @@ class TQtCConfig TQtCConfig(const TQString &filename); bool ok() const { return values.count()>0; } - bool hasKey(const TQString &key) { return values.tqcontains(key); } + bool hasKey(const TQString &key) { return values.contains(key); } const TQString & readEntry(const TQString &key, const TQString &def=TQString()); private: @@ -919,7 +919,7 @@ TQtCConfig::TQtCConfig(const TQString &filename) #if 0x039999 >= 0x040000 int pos=line.indexOf('='); #else - int pos=line.tqfind('='); + int pos=line.find('='); #endif if(-1!=pos) values[line.left(pos)]=line.mid(pos+1); @@ -930,7 +930,7 @@ TQtCConfig::TQtCConfig(const TQString &filename) inline const TQString & TQtCConfig::readEntry(const TQString &key, const TQString &def) { - return values.tqcontains(key) ? values[key] : def; + return values.contains(key) ? values[key] : def; } inline TQString readStringEntry(TQtCConfig &cfg, const TQString &key) @@ -3225,7 +3225,7 @@ bool static writeConfig(KConfig *cfg, const Options &opts, const Options &def, b #endif for(unsigned int i=0; i= 0x040000 -- cgit v1.2.1