From 9a68e0cc2599f495113428bc178f32dd6c86fcb0 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 28 Nov 2009 20:23:17 +0000 Subject: [PATCH] - Fix compilation error on some systems --- src/qtorrenthandle.cpp | 6 +++--- src/qtorrenthandle.h | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index c4e6aabab..138310594 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -546,17 +546,17 @@ void QTorrentHandle::resolve_countries(bool r) { h.resolve_countries(r); } -void QTorrentHandle::connect_peer(asio::ip::tcp::endpoint const& adr, int source) const { +void QTorrentHandle::connect_peer(libtorrent::asio::ip::tcp::endpoint const& adr, int source) const { Q_ASSERT(h.is_valid()); h.connect_peer(adr, source); } -void QTorrentHandle::set_peer_upload_limit(asio::ip::tcp::endpoint ip, int limit) const { +void QTorrentHandle::set_peer_upload_limit(libtorrent::asio::ip::tcp::endpoint ip, int limit) const { Q_ASSERT(h.is_valid()); h.set_peer_upload_limit(ip, limit); } -void QTorrentHandle::set_peer_download_limit(asio::ip::tcp::endpoint ip, int limit) const { +void QTorrentHandle::set_peer_download_limit(libtorrent::asio::ip::tcp::endpoint ip, int limit) const { Q_ASSERT(h.is_valid()); h.set_peer_download_limit(ip, limit); } diff --git a/src/qtorrenthandle.h b/src/qtorrenthandle.h index b075e158f..1897024ac 100644 --- a/src/qtorrenthandle.h +++ b/src/qtorrenthandle.h @@ -35,6 +35,7 @@ #include using namespace libtorrent; + #include class QStringList; @@ -152,9 +153,9 @@ class QTorrentHandle { void super_seeding(bool on) const; #endif void resolve_countries(bool r); - void connect_peer(asio::ip::tcp::endpoint const& adr, int source = 0) const; - void set_peer_upload_limit(asio::ip::tcp::endpoint ip, int limit) const; - void set_peer_download_limit(asio::ip::tcp::endpoint ip, int limit) const; + void connect_peer(libtorrent::asio::ip::tcp::endpoint const& adr, int source = 0) const; + void set_peer_upload_limit(libtorrent::asio::ip::tcp::endpoint ip, int limit) const; + void set_peer_download_limit(libtorrent::asio::ip::tcp::endpoint ip, int limit) const; void add_tracker(announce_entry const& url); void prioritize_first_last_piece(bool b);