mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Fix possible compilation error on Windows
This commit is contained in:
parent
a69c3098e1
commit
86f2447f8a
1 changed files with 2 additions and 2 deletions
|
@ -1565,7 +1565,7 @@ void QBtSession::loadSessionState() {
|
|||
// bdecode
|
||||
lazy_entry e;
|
||||
#if LIBTORRENT_VERSION_MINOR > 15
|
||||
error_code ec;
|
||||
libtorrent::error_code ec;
|
||||
lazy_bdecode(&in[0], &in[0] + in.size(), e, ec);
|
||||
if(!ec) {
|
||||
#else
|
||||
|
@ -1952,7 +1952,7 @@ void QBtSession::setListeningPort(int port) {
|
|||
Preferences pref;
|
||||
std::pair<int,int> ports(port, port);
|
||||
#if LIBTORRENT_VERSION_MINOR > 15
|
||||
error_code ec;
|
||||
libtorrent::error_code ec;
|
||||
#endif
|
||||
const QString iface_name = pref.getNetworkInterface();
|
||||
if(iface_name.isEmpty()) {
|
||||
|
|
Loading…
Reference in a new issue