From 95c8c1de0f2f9cdae9da444ecadee882c9c3a69e Mon Sep 17 00:00:00 2001 From: arvidn Date: Sat, 28 Jan 2017 20:21:39 -0500 Subject: [PATCH] fix build --- bindings/python/src/session.cpp | 6 ++---- include/libtorrent/add_torrent_params.hpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/bindings/python/src/session.cpp b/bindings/python/src/session.cpp index 262404c9b..b0c1791c4 100644 --- a/bindings/python/src/session.cpp +++ b/bindings/python/src/session.cpp @@ -198,15 +198,13 @@ namespace dict min_memory_usage_wrapper() { - settings_pack ret; - min_memory_usage(ret); + settings_pack ret = min_memory_usage(); return make_dict(ret); } dict high_performance_seed_wrapper() { - settings_pack ret; - high_performance_seed(ret); + settings_pack ret = high_performance_seed(); return make_dict(ret); } diff --git a/include/libtorrent/add_torrent_params.hpp b/include/libtorrent/add_torrent_params.hpp index 88c7615b5..e07f6c327 100644 --- a/include/libtorrent/add_torrent_params.hpp +++ b/include/libtorrent/add_torrent_params.hpp @@ -295,7 +295,7 @@ namespace libtorrent // On windows this path (and other paths) are interpreted as UNC // paths. This means they must use backslashes as directory separators // and may not contain the special directories "." or "..". - // + // // Setting this to an absolute path is slightly more performant than a // relative path. std::string save_path;