diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-10 06:08:18 +0000 |
commit | 2a99db3ebc4c211e436f95fde24b5ac6826d0267 (patch) | |
tree | ce2e122a017c12f803ea428a299c7e3cec52c8fe /plugins/webinterface/httpserver.cpp | |
parent | 100dcb6968ca22bfa52836ad55eb4f01225791db (diff) | |
download | ktorrent-2a99db3ebc4c211e436f95fde24b5ac6826d0267.tar.gz ktorrent-2a99db3ebc4c211e436f95fde24b5ac6826d0267.zip |
rename the following methods:
tqfind find
tqreplace replace
tqcontains contains
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/webinterface/httpserver.cpp')
-rw-r--r-- | plugins/webinterface/httpserver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/webinterface/httpserver.cpp b/plugins/webinterface/httpserver.cpp index 06d8d34..d04449b 100644 --- a/plugins/webinterface/httpserver.cpp +++ b/plugins/webinterface/httpserver.cpp @@ -88,7 +88,7 @@ namespace kt void HttpServer::slotSocketReadyToRead() { TQSocket* client = (TQSocket*)sender(); - HttpClientHandler* handler = clients.tqfind(client); + HttpClientHandler* handler = clients.find(client); if (!handler) { client->deleteLater(); @@ -112,7 +112,7 @@ namespace kt Uint8 h = (a.latin1() - (a.isNumber() ? '0' : 'a')) << 4; Uint8 l = (b.latin1() - (b.isNumber() ? '0' : 'a')); char r = (char) h | l; // combine them and cast to a char - password.tqreplace(idx,3,r); + password.replace(idx,3,r); return idx + 1; } @@ -134,7 +134,7 @@ namespace kt // check for passwords with url encoded stuff in them and decode them if necessary int idx = 0; - while ((idx = password.tqfind('%',idx)) > 0) + while ((idx = password.find('%',idx)) > 0) { if (idx + 2 < password.length()) { @@ -170,7 +170,7 @@ namespace kt if (hdr.hasKey("Cookie")) { TQString cookie = hdr.value("Cookie"); - int idx = cookie.tqfind("KT_SESSID="); + int idx = cookie.find("KT_SESSID="); if (idx == -1) return false; @@ -432,7 +432,7 @@ namespace kt { const char* ptr = data.data(); Uint32 len = data.size(); - int pos = TQString(data).tqfind("\r\n\r\n"); + int pos = TQString(data).find("\r\n\r\n"); if (pos == -1 || pos + 4 >= len || ptr[pos + 4] != 'd') { @@ -540,7 +540,7 @@ namespace kt bt::MMapFile* HttpServer::cacheLookup(const TQString & name) { - return cache.tqfind(name); + return cache.find(name); } void HttpServer::insertIntoCache(const TQString & name,bt::MMapFile* file) |