From 12fff1b96625e732ccca4c34f971910c9f1fae0e Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Mon, 15 Mar 2010 18:10:18 +0000 Subject: [PATCH] Compilation fix with Qt 4.4 --- src/bittorrent.cpp | 3 --- src/main.cpp | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 8086b02c7..46d689607 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -2274,10 +2274,7 @@ void Bittorrent::addConsoleMessage(QString msg, QString) { torrent_queue.push(qMakePair(prio, hash)); } // Resume downloads - int prio = -1; while(!torrent_queue.empty()) { - int new_prio = torrent_queue.top().first; - Q_ASSERT(new_prio >= prio); const QString &hash = torrent_queue.top().second; torrent_queue.pop(); qDebug("Starting up torrent %s", qPrintable(hash)); diff --git a/src/main.cpp b/src/main.cpp index d32e4256c..238aa5256 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -36,6 +36,7 @@ #include #include #include +#include #include #include #include "GUI.h"