summaryrefslogtreecommitdiffstats
path: root/libktorrent/torrent/upspeedestimater.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/torrent/upspeedestimater.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/torrent/upspeedestimater.cpp')
-rw-r--r--libktorrent/torrent/upspeedestimater.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libktorrent/torrent/upspeedestimater.cpp b/libktorrent/torrent/upspeedestimater.cpp
index 0d6c544..08137f5 100644
--- a/libktorrent/torrent/upspeedestimater.cpp
+++ b/libktorrent/torrent/upspeedestimater.cpp
@@ -50,7 +50,7 @@ namespace bt
void UpSpeedEstimater::bytesWritten(Uint32 bytes)
{
- QValueList<Entry>::iterator i = outstanding_bytes.begin();
+ TQValueList<Entry>::iterator i = outstanding_bytes.begin();
TimeStamp now = GetCurrentTime();
while (bytes > 0 && i != outstanding_bytes.end())
{
@@ -84,7 +84,7 @@ namespace bt
}
}
- double UpSpeedEstimater::rate(QValueList<Entry> & el)
+ double UpSpeedEstimater::rate(TQValueList<Entry> & el)
{
TimeStamp now = GetCurrentTime();
const Uint32 INTERVAL = 3000;
@@ -92,7 +92,7 @@ namespace bt
Uint32 tot_bytes = 0;
Uint32 oldest_time = now;
- QValueList<Entry>::iterator i = el.begin();
+ TQValueList<Entry>::iterator i = el.begin();
while (i != el.end())
{
Entry & e = *i;