From cf447296fbd74b0f63e6deb927491c8775848f50 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 17 Mar 2012 18:51:15 +0200 Subject: [PATCH] Fix compilation with libtorrent v0.16 --- src/properties/peerlistwidget.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/properties/peerlistwidget.cpp b/src/properties/peerlistwidget.cpp index 96c53a249..fd4c5b9b5 100644 --- a/src/properties/peerlistwidget.cpp +++ b/src/properties/peerlistwidget.cpp @@ -222,8 +222,8 @@ void PeerListWidget::limitUpRateSelectedPeers(const QStringList& peer_ips) bool ok = false; int cur_limit = -1; #if LIBTORRENT_VERSION_MINOR > 15 - boost::asio::ip::tcp::endpoint first_ep = peerEndpoints.value(peer_ips.first(), - boost::asio::ip::tcp::endpoint()); + boost::asio::ip::tcp::endpoint first_ep = m_peerEndpoints.value(peer_ips.first(), + boost::asio::ip::tcp::endpoint()); if (first_ep != boost::asio::ip::tcp::endpoint()) cur_limit = h.get_peer_upload_limit(first_ep); #endif @@ -257,8 +257,8 @@ void PeerListWidget::limitDlRateSelectedPeers(const QStringList& peer_ips) bool ok = false; int cur_limit = -1; #if LIBTORRENT_VERSION_MINOR > 15 - boost::asio::ip::tcp::endpoint first_ep = peerEndpoints.value(peer_ips.first(), - boost::asio::ip::tcp::endpoint()); + boost::asio::ip::tcp::endpoint first_ep = m_peerEndpoints.value(peer_ips.first(), + boost::asio::ip::tcp::endpoint()); if (first_ep != boost::asio::ip::tcp::endpoint()) cur_limit = h.get_peer_download_limit(first_ep); #endif