diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index ec232883d..c2491e155 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -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 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()) {