From 937b2991d8e78166eea904c80ad04d34607017a4 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/kdenetwork@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- filesharing/advanced/kcm_sambaconf/sambashare.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'filesharing/advanced/kcm_sambaconf/sambashare.cpp') diff --git a/filesharing/advanced/kcm_sambaconf/sambashare.cpp b/filesharing/advanced/kcm_sambaconf/sambashare.cpp index 5c9c69ed..c4f02af9 100644 --- a/filesharing/advanced/kcm_sambaconf/sambashare.cpp +++ b/filesharing/advanced/kcm_sambaconf/sambashare.cpp @@ -58,8 +58,8 @@ bool SambaShare::setName(const TQString & name, bool testWetherExists) { if ( testWetherExists && - _sambaFile->tqfind(name) && - _sambaFile->tqfind(name) != this) + _sambaFile->find(name) && + _sambaFile->find(name) != this) return false; _name = name; @@ -82,7 +82,7 @@ TQString SambaShare::getValue(const TQString & name, bool globalValue, bool defa { TQString synonym = getSynonym(name); - TQString* str = tqfind(synonym); + TQString* str = find(synonym); TQString ret; if (str) { @@ -113,7 +113,7 @@ TQString SambaShare::getGlobalValue(const TQString & name, bool defaultValue) if (!_sambaFile) return getValue(name,false,defaultValue); - SambaShare* globals = _sambaFile->tqfind("global"); + SambaShare* globals = _sambaFile->find("global"); TQString s = globals->getValue(name,false,defaultValue); @@ -219,12 +219,12 @@ void SambaShare::setValue(const TQString & name, const TQString & value, bool gl } - if (!tqfind(synonym)) + if (!find(synonym)) { _optionList.append(synonym); } - tqreplace(synonym,new TQString(newValue)); + replace(synonym,new TQString(newValue)); } void SambaShare::setValue(const TQString & name, bool value, bool globalValue, bool defaultValue) @@ -266,7 +266,7 @@ void SambaShare::setComments(const TQString & name, const TQStringList & comment TQString synonym = getSynonym(name); - _commentList.tqreplace(name,new TQStringList(commentList)); + _commentList.replace(name,new TQStringList(commentList)); } /** @@ -274,7 +274,7 @@ void SambaShare::setComments(const TQString & name, const TQStringList & comment **/ TQStringList SambaShare::getComments(const TQString & name) { - TQStringList* list = _commentList.tqfind(getSynonym(name)); + TQStringList* list = _commentList.find(getSynonym(name)); if (list) return TQStringList(*list); @@ -285,7 +285,7 @@ TQStringList SambaShare::getComments(const TQString & name) bool SambaShare::hasComments(const TQString & name) { - return 0L != _commentList.tqfind(getSynonym(name)); + return 0L != _commentList.find(getSynonym(name)); } /** @@ -316,10 +316,10 @@ TQStringList SambaShare::getOptionList() **/ bool SambaShare::isPrinter() { - TQString* str = tqfind("printable"); + TQString* str = find("printable"); if (!str) - str = tqfind("print ok"); + str = find("print ok"); return str!=0; } -- cgit v1.2.1