summaryrefslogtreecommitdiffstats
path: root/libktorrent/util
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit2a99db3ebc4c211e436f95fde24b5ac6826d0267 (patch)
treece2e122a017c12f803ea428a299c7e3cec52c8fe /libktorrent/util
parent100dcb6968ca22bfa52836ad55eb4f01225791db (diff)
downloadktorrent-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 'libktorrent/util')
-rw-r--r--libktorrent/util/httprequest.cpp6
-rw-r--r--libktorrent/util/ptrmap.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/libktorrent/util/httprequest.cpp b/libktorrent/util/httprequest.cpp
index ed7d980..a52788e 100644
--- a/libktorrent/util/httprequest.cpp
+++ b/libktorrent/util/httprequest.cpp
@@ -55,8 +55,8 @@ namespace bt
void HTTPRequest::onConnect(const KResolverEntry&)
{
- payload = payload.tqreplace("$LOCAL_IP",sock->localAddress().nodeName());
- hdr = hdr.tqreplace("$CONTENT_LENGTH",TQString::number(payload.length()));
+ payload = payload.replace("$LOCAL_IP",sock->localAddress().nodeName());
+ hdr = hdr.replace("$CONTENT_LENGTH",TQString::number(payload.length()));
TQString req = hdr + payload;
if (verbose)
@@ -88,7 +88,7 @@ namespace bt
Out(SYS_PNP|LOG_DEBUG) << strdata << endl;
}
- if (sl.first().tqcontains("HTTP") && sl.first().tqcontains("200"))
+ if (sl.first().contains("HTTP") && sl.first().contains("200"))
{
// emit reply OK
replyOK(this,sl.last());
diff --git a/libktorrent/util/ptrmap.h b/libktorrent/util/ptrmap.h
index 9474db1..36e1c20 100644
--- a/libktorrent/util/ptrmap.h
+++ b/libktorrent/util/ptrmap.h
@@ -129,7 +129,7 @@ namespace bt
* @param k The key
* @return The data of the key, 0 if the key isn't in the map
*/
- Data* tqfind(const Key & k)
+ Data* find(const Key & k)
{
iterator i = pmap.find(k);
return (i == pmap.end()) ? 0 : i->second;
@@ -140,7 +140,7 @@ namespace bt
* @param k The key
* @return The data of the key, 0 if the key isn't in the map
*/
- const Data* tqfind(const Key & k) const
+ const Data* find(const Key & k) const
{
const_iterator i = pmap.find(k);
return (i == pmap.end()) ? 0 : i->second;
@@ -151,7 +151,7 @@ namespace bt
* @param k The key
* @return true if it is part of the map
*/
- bool tqcontains(const Key & k) const
+ bool contains(const Key & k) const
{
const_iterator i = pmap.find(k);
return i != pmap.end();