summaryrefslogtreecommitdiffstats
path: root/conduits/sysinfoconduit/sysinfo-conduit.cc
diff options
context:
space:
mode:
Diffstat (limited to 'conduits/sysinfoconduit/sysinfo-conduit.cc')
-rw-r--r--conduits/sysinfoconduit/sysinfo-conduit.cc26
1 files changed, 13 insertions, 13 deletions
diff --git a/conduits/sysinfoconduit/sysinfo-conduit.cc b/conduits/sysinfoconduit/sysinfo-conduit.cc
index b46f5a3..3ee13e2 100644
--- a/conduits/sysinfoconduit/sysinfo-conduit.cc
+++ b/conduits/sysinfoconduit/sysinfo-conduit.cc
@@ -520,13 +520,13 @@ void SysInfoConduit::writeFile()
for ( TQStringList::Iterator it = keepParts.begin(); it != keepParts.end(); ++it ) {
TQRegExp re(CSL1("<!--#if%1#(.*)#endif%1#-->").tqarg(*it).tqarg(*it));
re.setMinimal(true);
- output.tqreplace(re, CSL1("\\1"));
+ output.replace(re, CSL1("\\1"));
}
// Do a loop through all keys in fValues
TQMap<TQString,TQString>::Iterator it;
for ( it = fValues.begin(); it != fValues.end(); ++it ) {
- output.tqreplace(CSL1("#%1#").tqarg(it.key()), it.data());
+ output.replace(CSL1("#%1#").tqarg(it.key()), it.data());
}
// Insert the list of databases
@@ -552,27 +552,27 @@ void SysInfoConduit::writeFile()
* %8 .. modifyDate
* %9 .. backupDate
*/
- newpatt.tqreplace(CSL1("%0"), TQString::tqfromLatin1(dbi.name));
+ newpatt.replace(CSL1("%0"), TQString::tqfromLatin1(dbi.name));
set_long(&tmpchr[0],dbi.type);
- newpatt.tqreplace(CSL1("%1"), TQString::tqfromLatin1(tmpchr));
+ newpatt.replace(CSL1("%1"), TQString::tqfromLatin1(tmpchr));
set_long(&tmpchr[0],dbi.creator);
- newpatt.tqreplace(CSL1("%2"), TQString::tqfromLatin1(tmpchr));
- newpatt.tqreplace(CSL1("%3"), TQString::number(dbi.index));
- newpatt.tqreplace(CSL1("%4"), TQString::number(dbi.flags));
- newpatt.tqreplace(CSL1("%5"), TQString::number(dbi.miscFlags));
- newpatt.tqreplace(CSL1("%6"), TQString::number(dbi.version));
+ newpatt.replace(CSL1("%2"), TQString::tqfromLatin1(tmpchr));
+ newpatt.replace(CSL1("%3"), TQString::number(dbi.index));
+ newpatt.replace(CSL1("%4"), TQString::number(dbi.flags));
+ newpatt.replace(CSL1("%5"), TQString::number(dbi.miscFlags));
+ newpatt.replace(CSL1("%6"), TQString::number(dbi.version));
TQDateTime tm;
tm.setTime_t(dbi.createDate);
- newpatt.tqreplace(CSL1("%7"), tm.toString(Qt::LocalDate));
+ newpatt.replace(CSL1("%7"), tm.toString(Qt::LocalDate));
tm.setTime_t(dbi.modifyDate);
- newpatt.tqreplace(CSL1("%8"), tm.toString(Qt::LocalDate));
+ newpatt.replace(CSL1("%8"), tm.toString(Qt::LocalDate));
tm.setTime_t(dbi.backupDate);
- newpatt.tqreplace(CSL1("%9"), tm.toString(Qt::LocalDate));
+ newpatt.replace(CSL1("%9"), tm.toString(Qt::LocalDate));
dbstring.append(newpatt);
}
// Now, just replace the whole found pattern by the string we just constructed.
- output.tqreplace(re.cap(0), dbstring);
+ output.replace(re.cap(0), dbstring);
}
// Write out the result