summaryrefslogtreecommitdiffstats
path: root/kcontrol/info/info_fbsd.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit9a3f0aacd44fb866833ebcb852df3cd31475cb33 (patch)
tree9f699684624f4e78e13e7dd2393a103cc6fa8274 /kcontrol/info/info_fbsd.cpp
parent341ad02235b9c85cd31782225181ed475b74eaa3 (diff)
downloadtdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.tar.gz
tdebase-9a3f0aacd44fb866833ebcb852df3cd31475cb33.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kcontrol/info/info_fbsd.cpp')
-rw-r--r--kcontrol/info/info_fbsd.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/kcontrol/info/info_fbsd.cpp b/kcontrol/info/info_fbsd.cpp
index 3f67b4b7a..3ccd1c086 100644
--- a/kcontrol/info/info_fbsd.cpp
+++ b/kcontrol/info/info_fbsd.cpp
@@ -347,24 +347,24 @@ bool GetInfo_Devices (TQListView *lbox)
TQString GetController(const TQString &line)
{
- if ( ( (line.startsWith("ad")) || (line.startsWith("afd")) || (line.startsWith("acd")) ) && (line.tqfind(":") < 6) ) {
+ if ( ( (line.startsWith("ad")) || (line.startsWith("afd")) || (line.startsWith("acd")) ) && (line.find(":") < 6) ) {
TQString controller = line;
- controller.remove(0, controller.tqfind(" at ")+4);
- if (controller.tqfind("-slave") != -1) {
- controller.remove(controller.tqfind("-slave"), controller.length());
- } else if (controller.tqfind("-master") != -1) {
- controller.remove(controller.tqfind("-master"), controller.length());
+ controller.remove(0, controller.find(" at ")+4);
+ if (controller.find("-slave") != -1) {
+ controller.remove(controller.find("-slave"), controller.length());
+ } else if (controller.find("-master") != -1) {
+ controller.remove(controller.find("-master"), controller.length());
} else
controller=TQString::null;
if (!controller.isNull())
return controller;
}
- if (line.tqfind(" on ") != -1) {
+ if (line.find(" on ") != -1) {
TQString controller;
controller = line;
- controller.remove(0, controller.tqfind(" on ")+4);
- if (controller.tqfind(" ") != -1)
- controller.remove(controller.tqfind(" "), controller.length());
+ controller.remove(0, controller.find(" on ")+4);
+ if (controller.find(" ") != -1)
+ controller.remove(controller.find(" "), controller.length());
return controller;
}
return TQString::null;
@@ -373,13 +373,13 @@ TQString GetController(const TQString &line)
Device *GetDevice(const TQString &line)
{
Device *dev;
- int colon = line.tqfind(":");
+ int colon = line.find(":");
if (colon == -1)
return 0;
dev = new Device;
dev->name = line.mid(0, colon);
- dev->description = line.mid(line.tqfind("<")+1, line.length());
- dev->description.remove(dev->description.tqfind(">"), dev->description.length());
+ dev->description = line.mid(line.find("<")+1, line.length());
+ dev->description.remove(dev->description.find(">"), dev->description.length());
return dev;
}