From 48bb1d2c95638c141a04b7545a0335c239cd98e0 Mon Sep 17 00:00:00 2001 From: arvidn Date: Thu, 1 Jun 2017 16:29:01 +0200 Subject: [PATCH] fix default value for move_storage --- include/libtorrent/torrent_handle.hpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/libtorrent/torrent_handle.hpp b/include/libtorrent/torrent_handle.hpp index ca54fec70..5caaa4d69 100644 --- a/include/libtorrent/torrent_handle.hpp +++ b/include/libtorrent/torrent_handle.hpp @@ -1239,16 +1239,13 @@ namespace libtorrent { namespace aux { // well. This goes for files that have been renamed to absolute paths // that still end up inside the save path. void move_storage(std::string const& save_path - , move_flags_t flags -#ifdef TORRENT_NO_DEPRECATE - = move_flags_t::always_replace_files -#endif + , move_flags_t flags = move_flags_t::always_replace_files ) const; #ifndef TORRENT_NO_DEPRECATE // deprecated in 1.2 TORRENT_DEPRECATED - void move_storage(std::string const& save_path, int flags = 0) const; + void move_storage(std::string const& save_path, int flags) const; #endif // Renames the file with the given index asynchronously. The rename