From 82e2b3a6cd9c5fc1af697ad3b8407e9137f31615 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Wed, 2 May 2012 17:34:44 +0300 Subject: [PATCH] Fix possible compilation error on Windows --- src/qtlibtorrent/qbtsession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index ba086f1b1..7ac0d81f9 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -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) { 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()) {