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 /libktorrent/torrent/oldchokealgorithm.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 'libktorrent/torrent/oldchokealgorithm.cpp')
-rw-r--r-- | libktorrent/torrent/oldchokealgorithm.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libktorrent/torrent/oldchokealgorithm.cpp b/libktorrent/torrent/oldchokealgorithm.cpp index e24d63a..6c529ce 100644 --- a/libktorrent/torrent/oldchokealgorithm.cpp +++ b/libktorrent/torrent/oldchokealgorithm.cpp @@ -109,7 +109,7 @@ namespace bt void OldChokeAlgorithm::updateDownloaders() { - QPtrList<Peer>::iterator itr = interested.begin(); + TQPtrList<Peer>::iterator itr = interested.begin(); int num = 0; // send all downloaders an unchoke for (;itr != interested.end();itr++) @@ -152,7 +152,7 @@ namespace bt if (downloaders.count() == 0) return; - QPtrList<Peer>::iterator itr = not_interested.begin(); + TQPtrList<Peer>::iterator itr = not_interested.begin(); // fd = fastest_downloader Peer* fd = downloaders.first(); // send all downloaders an unchoke @@ -188,8 +188,8 @@ namespace bt } // Get current time - QTime now = QTime::currentTime(); - QPtrList<Peer> peers; // list to store peers to select from + TQTime now = TQTime::currentTime(); + TQPtrList<Peer> peers; // list to store peers to select from // recently connected peers == peers connected in the last 5 minutes const int RECENTLY_CONNECT_THRESH = 5*60; |