move the whole add_torrent_params object into save_resume_data_alert

This commit is contained in:
arvidn 2018-11-12 02:43:30 +01:00 committed by Arvid Norberg
parent e0c1b3403c
commit 2d6a6a24ae
2 changed files with 5 additions and 2 deletions

View File

@ -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)

View File

@ -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))