mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Fix compilation with libtorrent v0.16
This commit is contained in:
@@ -222,7 +222,7 @@ void PeerListWidget::limitUpRateSelectedPeers(const QStringList& peer_ips)
|
|||||||
bool ok = false;
|
bool ok = false;
|
||||||
int cur_limit = -1;
|
int cur_limit = -1;
|
||||||
#if LIBTORRENT_VERSION_MINOR > 15
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
boost::asio::ip::tcp::endpoint first_ep = peerEndpoints.value(peer_ips.first(),
|
boost::asio::ip::tcp::endpoint first_ep = m_peerEndpoints.value(peer_ips.first(),
|
||||||
boost::asio::ip::tcp::endpoint());
|
boost::asio::ip::tcp::endpoint());
|
||||||
if (first_ep != boost::asio::ip::tcp::endpoint())
|
if (first_ep != boost::asio::ip::tcp::endpoint())
|
||||||
cur_limit = h.get_peer_upload_limit(first_ep);
|
cur_limit = h.get_peer_upload_limit(first_ep);
|
||||||
@@ -257,7 +257,7 @@ void PeerListWidget::limitDlRateSelectedPeers(const QStringList& peer_ips)
|
|||||||
bool ok = false;
|
bool ok = false;
|
||||||
int cur_limit = -1;
|
int cur_limit = -1;
|
||||||
#if LIBTORRENT_VERSION_MINOR > 15
|
#if LIBTORRENT_VERSION_MINOR > 15
|
||||||
boost::asio::ip::tcp::endpoint first_ep = peerEndpoints.value(peer_ips.first(),
|
boost::asio::ip::tcp::endpoint first_ep = m_peerEndpoints.value(peer_ips.first(),
|
||||||
boost::asio::ip::tcp::endpoint());
|
boost::asio::ip::tcp::endpoint());
|
||||||
if (first_ep != boost::asio::ip::tcp::endpoint())
|
if (first_ep != boost::asio::ip::tcp::endpoint())
|
||||||
cur_limit = h.get_peer_download_limit(first_ep);
|
cur_limit = h.get_peer_download_limit(first_ep);
|
||||||
|
|||||||
Reference in New Issue
Block a user