summaryrefslogtreecommitdiffstats
path: root/knode/kngroupmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'knode/kngroupmanager.cpp')
-rw-r--r--knode/kngroupmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/knode/kngroupmanager.cpp b/knode/kngroupmanager.cpp
index 151efa0f0..c0677a0ad 100644
--- a/knode/kngroupmanager.cpp
+++ b/knode/kngroupmanager.cpp
@@ -111,7 +111,7 @@ bool KNGroupListData::readIn(KNProtocolClient *client)
if(f.open(IO_ReadOnly)) {
while(!f.atEnd()) {
line = f.readLine();
- sepPos1 = line.tqfind(' ');
+ sepPos1 = line.find(' ');
if (sepPos1==-1) { // no description
name = TQString::fromUtf8(line);
@@ -120,7 +120,7 @@ bool KNGroupListData::readIn(KNProtocolClient *client)
} else {
name = TQString::fromUtf8(line.left(sepPos1));
- sepPos2 = line.tqfind(' ',sepPos1+1);
+ sepPos2 = line.find(' ',sepPos1+1);
if (sepPos2==-1) { // no status
description = TQString::fromUtf8(line.right(line.length()-sepPos1-1));
status = KNGroup::unknown;
@@ -139,7 +139,7 @@ bool KNGroupListData::readIn(KNProtocolClient *client)
}
}
- if (subscribed.tqcontains(name)) {
+ if (subscribed.contains(name)) {
subscribed.remove(name); // group names are unique, we wont find it again anyway...
sub = true;
} else
@@ -201,7 +201,7 @@ void KNGroupListData::merge(TQSortedList<KNGroupInfo>* newGroups)
bool subscribed;
for (KNGroupInfo *i=newGroups->first(); i; i=newGroups->next()) {
- if (groups->tqfind(i)>=0) {
+ if (groups->find(i)>=0) {
subscribed = groups->current()->subscribed;
groups->remove(); // avoid duplicates
} else