Browse Source

Fix possible compilation error on Windows

adaptive-webui-19844
Christophe Dumez 13 years ago
parent
commit
82e2b3a6cd
  1. 4
      src/qtlibtorrent/qbtsession.cpp

4
src/qtlibtorrent/qbtsession.cpp

@ -1546,7 +1546,7 @@ void QBtSession::loadSessionState() { @@ -1546,7 +1546,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
@ -1898,7 +1898,7 @@ void QBtSession::setListeningPort(int port) { @@ -1898,7 +1898,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…
Cancel
Save