From d8ebcc7f0c547e354b54b0359b77676535690b71 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Sun, 4 Mar 2018 16:57:48 -0500 Subject: [PATCH] minimal lint oriented code cleanup and reactor in session_handle.hpp --- include/libtorrent/session_handle.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/libtorrent/session_handle.hpp b/include/libtorrent/session_handle.hpp index fa0974b8f..72484f229 100644 --- a/include/libtorrent/session_handle.hpp +++ b/include/libtorrent/session_handle.hpp @@ -884,9 +884,6 @@ namespace libtorrent { TORRENT_DEPRECATED int max_uploads() const; - TORRENT_DEPRECATED - void pop_alerts(std::deque* alerts); - #endif // Alerts is the main mechanism for libtorrent to report errors and @@ -1063,7 +1060,7 @@ namespace libtorrent { Ret sync_call_ret(Fun f, Args&&... a) const; explicit session_handle(std::weak_ptr impl) - : m_impl(impl) + : m_impl(std::move(impl)) {} std::weak_ptr m_impl;