summaryrefslogtreecommitdiffstats
path: root/libktorrent/datachecker/multidatachecker.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/datachecker/multidatachecker.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/datachecker/multidatachecker.cpp')
-rw-r--r--libktorrent/datachecker/multidatachecker.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/libktorrent/datachecker/multidatachecker.cpp b/libktorrent/datachecker/multidatachecker.cpp
index 3c26721..526fd08 100644
--- a/libktorrent/datachecker/multidatachecker.cpp
+++ b/libktorrent/datachecker/multidatachecker.cpp
@@ -45,7 +45,7 @@ namespace bt
delete [] buf;
}
- void MultiDataChecker::check(const QString& path, const Torrent& tor,const QString & dnddir)
+ void MultiDataChecker::check(const TQString& path, const Torrent& tor,const TQString & dnddir)
{
Uint32 num_chunks = tor.getNumChunks();
// initialize the bitsets
@@ -104,13 +104,13 @@ namespace bt
const TorrentFile & tf,
const Torrent & tor,
Uint8* buf,
- const QString & cache)
+ const TQString & cache)
{
File fptr;
if (!fptr.open(cache + tf.getPath(), "rb"))
{
- Out() << QString("Warning : Cannot open %1 : %2").arg(cache +
- tf.getPath()).arg(fptr.errorString()) << endl;
+ Out() << TQString("Warning : Cannot open %1 : %2").tqarg(cache +
+ tf.getPath()).tqarg(fptr.errorString()) << endl;
return 0;
}
@@ -121,7 +121,7 @@ namespace bt
bool MultiDataChecker::loadChunk(Uint32 ci,Uint32 cs,const Torrent & tor)
{
- QValueList<Uint32> tflist;
+ TQValueList<Uint32> tflist;
tor.calcChunkPos(ci,tflist);
// one file is simple
@@ -183,8 +183,8 @@ namespace bt
File fptr;
if (!fptr.open(cache + f.getPath(), "rb"))
{
- Out() << QString("Warning : Cannot open %1 : %2").arg(cache +
- f.getPath()).arg(fptr.errorString()) << endl;
+ Out() << TQString("Warning : Cannot open %1 : %2").tqarg(cache +
+ f.getPath()).tqarg(fptr.errorString()) << endl;
return false;
}
else