From 2d6a6a24ae1f59103a7098d5bf5782f27d6a34f5 Mon Sep 17 00:00:00 2001 From: arvidn Date: Mon, 12 Nov 2018 02:43:30 +0100 Subject: [PATCH] move the whole add_torrent_params object into save_resume_data_alert --- include/libtorrent/alert_types.hpp | 5 ++++- src/alert.cpp | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 4dfc48b6c..02191623f 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -1114,8 +1114,11 @@ TORRENT_VERSION_NAMESPACE_2 { // internal save_resume_data_alert(aux::stack_allocator& alloc - , add_torrent_params params + , add_torrent_params&& params , torrent_handle const& h); + save_resume_data_alert(aux::stack_allocator& alloc + , add_torrent_params const& params + , torrent_handle const& h) = delete; TORRENT_DEFINE_ALERT_PRIO(save_resume_data_alert, 37, alert_priority_critical) diff --git a/src/alert.cpp b/src/alert.cpp index 797177899..24fff4203 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -741,7 +741,7 @@ namespace libtorrent { } save_resume_data_alert::save_resume_data_alert(aux::stack_allocator& alloc - , add_torrent_params p + , add_torrent_params&& p , torrent_handle const& h) : torrent_alert(alloc, h) , params(std::move(p))