fix default value for move_storage

This commit is contained in:
arvidn 2017-06-01 16:29:01 +02:00 committed by Arvid Norberg
parent 781a35a210
commit 48bb1d2c95
1 changed files with 2 additions and 5 deletions

View File

@ -1239,16 +1239,13 @@ namespace libtorrent { namespace aux {
// well. This goes for files that have been renamed to absolute paths // well. This goes for files that have been renamed to absolute paths
// that still end up inside the save path. // that still end up inside the save path.
void move_storage(std::string const& save_path void move_storage(std::string const& save_path
, move_flags_t flags , move_flags_t flags = move_flags_t::always_replace_files
#ifdef TORRENT_NO_DEPRECATE
= move_flags_t::always_replace_files
#endif
) const; ) const;
#ifndef TORRENT_NO_DEPRECATE #ifndef TORRENT_NO_DEPRECATE
// deprecated in 1.2 // deprecated in 1.2
TORRENT_DEPRECATED 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 #endif
// Renames the file with the given index asynchronously. The rename // Renames the file with the given index asynchronously. The rename