summaryrefslogtreecommitdiffstats
path: root/kresources/caldav/preferences.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kresources/caldav/preferences.cpp')
-rw-r--r--kresources/caldav/preferences.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/kresources/caldav/preferences.cpp b/kresources/caldav/preferences.cpp
index 11de07e98..6eb87e450 100644
--- a/kresources/caldav/preferences.cpp
+++ b/kresources/caldav/preferences.cpp
@@ -218,16 +218,16 @@ TQString CalDavPrefs::getFullUrl() {
safeURL = t.toString();
- firstAt = safeURL.tqfind("@") + 1;
- while (safeURL.tqfind("@", firstAt) != -1) {
- safeURL.tqreplace(safeURL.tqfind("@", firstAt), 1, "%40");
+ firstAt = safeURL.find("@") + 1;
+ while (safeURL.find("@", firstAt) != -1) {
+ safeURL.replace(safeURL.find("@", firstAt), 1, "%40");
}
// Unencode the username, as Zimbra stupidly rejects the %40
- safeURL.tqreplace("%40", "@");
+ safeURL.replace("%40", "@");
// Encode any spaces, as libcaldav stupidly fails otherwise
- safeURL.tqreplace(" ", "%20");
+ safeURL.replace(" ", "%20");
return safeURL;
}
@@ -245,16 +245,16 @@ TQString CalDavPrefs::getFullTasksUrl() {
safeURL = t.toString();
- firstAt = safeURL.tqfind("@") + 1;
- while (safeURL.tqfind("@", firstAt) != -1) {
- safeURL.tqreplace(safeURL.tqfind("@", firstAt), 1, "%40");
+ firstAt = safeURL.find("@") + 1;
+ while (safeURL.find("@", firstAt) != -1) {
+ safeURL.replace(safeURL.find("@", firstAt), 1, "%40");
}
// Unencode the username, as Zimbra stupidly rejects the %40
- safeURL.tqreplace("%40", "@");
+ safeURL.replace("%40", "@");
// Encode any spaces, as libcaldav stupidly fails otherwise
- safeURL.tqreplace(" ", "%20");
+ safeURL.replace(" ", "%20");
return safeURL;
}
@@ -272,16 +272,16 @@ TQString CalDavPrefs::getFullJournalsUrl() {
safeURL = t.toString();
- firstAt = safeURL.tqfind("@") + 1;
- while (safeURL.tqfind("@", firstAt) != -1) {
- safeURL.tqreplace(safeURL.tqfind("@", firstAt), 1, "%40");
+ firstAt = safeURL.find("@") + 1;
+ while (safeURL.find("@", firstAt) != -1) {
+ safeURL.replace(safeURL.find("@", firstAt), 1, "%40");
}
// Unencode the username, as Zimbra stupidly rejects the %40
- safeURL.tqreplace("%40", "@");
+ safeURL.replace("%40", "@");
// Encode any spaces, as libcaldav stupidly fails otherwise
- safeURL.tqreplace(" ", "%20");
+ safeURL.replace(" ", "%20");
return safeURL;
}