diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-28 20:34:15 +0000 |
commit | 1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch) | |
tree | 38559cd68cd4f63023fb5f6375def9db3b8b491e /utests/dhtmsgparsetest.cpp | |
parent | 894f94545727610df22c4f73911d62d58266f695 (diff) | |
download | ktorrent-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 'utests/dhtmsgparsetest.cpp')
-rw-r--r-- | utests/dhtmsgparsetest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utests/dhtmsgparsetest.cpp b/utests/dhtmsgparsetest.cpp index 44e0338..38a0deb 100644 --- a/utests/dhtmsgparsetest.cpp +++ b/utests/dhtmsgparsetest.cpp @@ -38,9 +38,9 @@ namespace utest DHTMsgParseTest::~DHTMsgParseTest() {} - bool DHTMsgParseTest::doTest(const QString & data,int method) + bool DHTMsgParseTest::doTest(const TQString & data,int method) { - QByteArray bdata(data.length()); + TQByteArray bdata(data.length()); for (int i = 0;i < data.length();i++) { @@ -74,14 +74,14 @@ namespace utest bool DHTMsgParseTest::doTest() { - QString test_str[] = { + TQString test_str[] = { "d1:rd2:id20:####################5:token20:####################6:valuesl6:######6:######6:######6:######6:######6:######6:######6:######ee1:t1:#1:y1:re", "d1:ad2:id20:####################9:info_hash20:####################e1:q9:get_peers1:t1:#1:y1:qe", "d1:rd2:id20:####################5:nodes208:################################################################################################################################################################################################################5:token20:####################e1:t1:#1:y1:re", - QString::null + TQString() }; int types[] = {dht::GET_PEERS,dht::NONE,dht::GET_PEERS}; |