summaryrefslogtreecommitdiffstats
path: root/kpackage/debAptInterface.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpackage/debAptInterface.cpp')
-rw-r--r--kpackage/debAptInterface.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kpackage/debAptInterface.cpp b/kpackage/debAptInterface.cpp
index d453726..ce28d21 100644
--- a/kpackage/debAptInterface.cpp
+++ b/kpackage/debAptInterface.cpp
@@ -318,7 +318,7 @@ TQStringList DEBAPT::listInstalls(const TQStringList &packs, bool install, bool
TQString packAll;
for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
// kdDebug() << "M=" << *it << "\n";
- if ((*it).tqfind(match) >= 0 || extras) {
+ if ((*it).find(match) >= 0 || extras) {
if (extras) {
if ((*it)[0] == ' ') {
packAll += *it;
@@ -351,14 +351,14 @@ TQStringList DEBAPT::FindFile(const TQString &name, bool searchAll)
TQStringList filelist = kpty->run(s);
for ( TQStringList::Iterator it = filelist.begin(); it != filelist.end(); ++it ) {
- int p = (*it).tqfind(": ");
+ int p = (*it).find(": ");
if( p !=-1 )
- (*it).tqreplace(p, 2, "\t");
+ (*it).replace(p, 2, "\t");
}
if (filelist.count() == 1) {
TQStringList::Iterator it = filelist.begin();
- if ((*it).tqfind("not found") >= 0) {
+ if ((*it).find("not found") >= 0) {
filelist.remove(it);
}
}
@@ -514,10 +514,10 @@ void DEBAPT::writeApt(const TQStringList &list) {
TQString cmd = "sh -c \"/bin/echo -e '";
for ( TQStringList::ConstIterator it = list.begin(); it != list.end(); ++it ) {
TQString s = *it;
- s.tqreplace("\""," ");
- s.tqreplace("'"," ");
- s.tqreplace("!"," ");
- s.tqreplace("`"," ");
+ s.replace("\""," ");
+ s.replace("'"," ");
+ s.replace("!"," ");
+ s.replace("`"," ");
cmd += s;
cmd += "\n";
}