summaryrefslogtreecommitdiffstats
path: root/libktorrent/kademlia/node.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /libktorrent/kademlia/node.cpp
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'libktorrent/kademlia/node.cpp')
-rw-r--r--libktorrent/kademlia/node.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libktorrent/kademlia/node.cpp b/libktorrent/kademlia/node.cpp
index 96c39a4..bd450e4 100644
--- a/libktorrent/kademlia/node.cpp
+++ b/libktorrent/kademlia/node.cpp
@@ -37,7 +37,7 @@ using namespace KNetwork;
namespace dht
{
- static void SaveKey(const dht::Key & key,const QString & key_file)
+ static void SaveKey(const dht::Key & key,const TQString & key_file)
{
bt::File fptr;
if (!fptr.open(key_file,"wb"))
@@ -50,7 +50,7 @@ namespace dht
fptr.close();
}
- static dht::Key LoadKey(const QString & key_file,bool & new_key)
+ static dht::Key LoadKey(const TQString & key_file,bool & new_key)
{
bt::File fptr;
if (!fptr.open(key_file,"rb"))
@@ -75,7 +75,7 @@ namespace dht
return dht::Key(data);
}
- Node::Node(RPCServer* srv,const QString & key_file) : srv(srv)
+ Node::Node(RPCServer* srv,const TQString & key_file) : srv(srv)
{
num_receives = 0;
num_entries = 0;
@@ -224,7 +224,7 @@ namespace dht
}
- void Node::saveTable(const QString & file)
+ void Node::saveTable(const TQString & file)
{
bt::File fptr;
if (!fptr.open(file,"wb"))
@@ -243,7 +243,7 @@ namespace dht
}
}
- void Node::loadTable(const QString & file)
+ void Node::loadTable(const TQString & file)
{
if (delete_table)
{