summaryrefslogtreecommitdiffstats
path: root/kppp/providerdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kppp/providerdb.cpp')
-rw-r--r--kppp/providerdb.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kppp/providerdb.cpp b/kppp/providerdb.cpp
index a86b915d..f27c5528 100644
--- a/kppp/providerdb.cpp
+++ b/kppp/providerdb.cpp
@@ -143,11 +143,11 @@ void ProviderDB::accept() {
while(it != map.end()) {
TQString key = it.key();
TQString value = *it;
- if(value.tqcontains(re_username))
- value.tqreplace(re_username, page4->username());
+ if(value.contains(re_username))
+ value.replace(re_username, page4->username());
- if(value.tqcontains(re_password))
- value.tqreplace(re_password, page4->password());
+ if(value.contains(re_password))
+ value.replace(re_password, page4->password());
gpppdata.writeConfig(gpppdata.currentAccountGroup(), key, value);
@@ -296,7 +296,7 @@ void PDB_Provider::setDir(const TQString &_dir) {
TQString dir1 = KGlobal::dirs()->findDirs("appdata", "Provider").first();
TQRegExp re1(" ");
- dir = dir.tqreplace(re1, "_");
+ dir = dir.replace(re1, "_");
dir1 += dir;
TQDir d(dir1);
@@ -458,7 +458,7 @@ void urlEncode(TQString &s) {
TQString s1, tmp;
for(uint i = 0; i < s.length(); i++) {
- if(TQString(UNENCODED_CHARS).tqfind(s[i]) >= 0)
+ if(TQString(UNENCODED_CHARS).find(s[i]) >= 0)
s1 += s[i];
else {
tmp.sprintf("%%%03i", s[i].tqunicode());