summaryrefslogtreecommitdiffstats
path: root/kfile-plugins/torrent/bdict.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-22 00:30:31 +0000
commit69cac65817d949cda2672ec4f0aa73d5e66a0ba1 (patch)
tree073fde0496ea90eb5bf5cffe66a8da43a9f55fbc /kfile-plugins/torrent/bdict.cpp
parent3467e6464beac3a162839bf7078e22e3a74d73e7 (diff)
downloadtdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.tar.gz
tdenetwork-69cac65817d949cda2672ec4f0aa73d5e66a0ba1.zip
TQt4 port kdenetwork
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kfile-plugins/torrent/bdict.cpp')
-rw-r--r--kfile-plugins/torrent/bdict.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/kfile-plugins/torrent/bdict.cpp b/kfile-plugins/torrent/bdict.cpp
index 4819165c..f19c70b9 100644
--- a/kfile-plugins/torrent/bdict.cpp
+++ b/kfile-plugins/torrent/bdict.cpp
@@ -114,7 +114,7 @@ BDict::~BDict ()
BInt *BDict::findInt (const char *key)
{
- BBase *base = find(key);
+ BBase *base = tqfind(key);
if (base && base->type_id() == bInt)
return dynamic_cast<BInt*>(base);
@@ -124,7 +124,7 @@ BInt *BDict::findInt (const char *key)
BList *BDict::findList (const char *key)
{
- BBase *base = find(key);
+ BBase *base = tqfind(key);
if (base && base->type_id() == bList)
return dynamic_cast<BList*>(base);
@@ -134,7 +134,7 @@ BList *BDict::findList (const char *key)
BDict *BDict::findDict (const char *key)
{
- BBase *base = find(key);
+ BBase *base = tqfind(key);
if (base && base->type_id() == bDict)
return dynamic_cast<BDict*>(base);
@@ -144,7 +144,7 @@ BDict *BDict::findDict (const char *key)
BString *BDict::findStr (const char *key)
{
- BBase *base = find(key);
+ BBase *base = tqfind(key);
if (base && base->type_id() == bString)
return dynamic_cast<BString*>(base);
@@ -159,7 +159,7 @@ bool BDict::writeToDevice(TQIODevice &device)
const char *d_str = "d";
const char *e_str = "e";
- Q_LONG written = 0, result = 0;
+ TQ_LONG written = 0, result = 0;
written = device.writeBlock (d_str, 1);
while (written < 1)
@@ -188,7 +188,7 @@ bool BDict::writeToDevice(TQIODevice &device)
for (key_iter = key_list.begin(); key_iter != key_list.end(); ++key_iter)
{
TQCString utfString = (*key_iter).utf8();
- TQString str = TQString("%1:").arg(utfString.size() - 1);
+ TQString str = TQString("%1:").tqarg(utfString.size() - 1);
TQCString lenString = str.utf8();
@@ -199,7 +199,7 @@ bool BDict::writeToDevice(TQIODevice &device)
device.writeBlock(utfString.data(), utfString.size() - 1);
// Write out the key's data
- BBase *base = m_map.find(*key_iter);
+ BBase *base = m_map.tqfind(*key_iter);
if (!base->writeToDevice (device))
return false;
}