From 63a2522014c6b5e61258429e90d6350eb8f68cfa Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Fri, 13 Feb 2009 07:13:03 +0000 Subject: [PATCH] fixed some warnings --- bindings/python/src/torrent_handle.cpp | 2 -- src/session_impl.cpp | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bindings/python/src/torrent_handle.cpp b/bindings/python/src/torrent_handle.cpp index dfadb0571..8ae2bb965 100644 --- a/bindings/python/src/torrent_handle.cpp +++ b/bindings/python/src/torrent_handle.cpp @@ -269,8 +269,6 @@ void bind_torrent_handle() void (torrent_handle::*resolve_countries1)(bool) = &torrent_handle::resolve_countries; #endif - return_value_policy copy; - #define _ allow_threads class_("torrent_handle") diff --git a/src/session_impl.cpp b/src/session_impl.cpp index 806020fbe..d1e4eda01 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1841,7 +1841,7 @@ namespace aux { { TORRENT_ASSERT(!params.save_path.empty()); - if (params.ti && params.ti->files().num_files() == 0) + if (params.ti && params.ti->num_files() == 0) { #ifndef BOOST_NO_EXCEPTIONS throw std::runtime_error("no files in torrent");