From 1c1403293485f35fd53db45aaa77a01cdd9627e7 Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 28 Jun 2011 20:34:15 +0000 Subject: 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 --- libktorrent/kademlia/pack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libktorrent/kademlia/pack.cpp') diff --git a/libktorrent/kademlia/pack.cpp b/libktorrent/kademlia/pack.cpp index a5acafb..200c686 100644 --- a/libktorrent/kademlia/pack.cpp +++ b/libktorrent/kademlia/pack.cpp @@ -27,7 +27,7 @@ using namespace KNetwork; namespace dht { - void PackBucketEntry(const KBucketEntry & e,QByteArray & ba,Uint32 off) + void PackBucketEntry(const KBucketEntry & e,TQByteArray & ba,Uint32 off) { // first check size if (off + 26 > ba.size()) @@ -43,7 +43,7 @@ namespace dht bt::WriteUint16(ptr,24,addr.port()); } - KBucketEntry UnpackBucketEntry(const QByteArray & ba,Uint32 off) + KBucketEntry UnpackBucketEntry(const TQByteArray & ba,Uint32 off) { if (off + 26 > ba.size()) throw bt::Error("Not enough room in buffer"); -- cgit v1.2.1