From 86f2447f8a1eb13981794d5d74cbc48f3f399b07 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 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()) {