summaryrefslogtreecommitdiffstats
path: root/kpackage/slackInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/slackInterface.cpp')
-rw-r--r--kpackage/slackInterface.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kpackage/slackInterface.cpp b/kpackage/slackInterface.cpp
index 49e7c64..ae51d7b 100644
--- a/kpackage/slackInterface.cpp
+++ b/kpackage/slackInterface.cpp
@@ -148,7 +148,7 @@ bool SLACK::isType(char *buf, const TQString &)
bool SLACK::parseName(const TQString &name, TQString *n, TQString *v)
{
int s1;
- s1 = name.tqfindRev('.');
+ s1 = name.findRev('.');
if (s1 > 0) {
*n = name.left(s1);
v = new TQString("");
@@ -432,15 +432,15 @@ packageInfo *SLACK::collectInfo(const char *_inp, int insState)
} else if (!strcmp("package location",str)) {
TQString sl = xstr;
if (insState != INSTALLED) {
- int sls = sl.tqfindRev("/");
+ int sls = sl.findRev("/");
if (sls >= 0) {
TQRegExp num("[0-9][0-9]*");
- int slf = sl.tqfind(num,sls);
+ int slf = sl.find(num,sls);
if (slf >= 0) {
sls++;
TQString gt = sl.mid(sls,slf-sls);
- if (trl->tqfind(gt)) {
- gt = *trl->tqfind(gt);
+ if (trl->find(gt)) {
+ gt = *trl->find(gt);
}
a.insert("group",gt);
}
@@ -643,7 +643,7 @@ TQStringList SLACK::FindFile(const TQString &name, bool)
}
}
while (fgets(linebuf,sizeof(linebuf),file)) {
- if (TQString(TQString::fromLocal8Bit(linebuf)).tqfind(name) != -1) {
+ if (TQString(TQString::fromLocal8Bit(linebuf)).find(name) != -1) {
st = "/";
st += linebuf;
st.truncate(st.length() -1);