From f139776542527c340514c3474850ef58f88cea87 Mon Sep 17 00:00:00 2001 From: Alden Torres Date: Wed, 21 Sep 2016 02:14:42 -0400 Subject: [PATCH] using consts refs in add_torrent_alert (#1124) --- include/libtorrent/alert_types.hpp | 4 ++-- src/alert.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 4259d17c2..955ba7e66 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -1815,8 +1815,8 @@ namespace libtorrent struct TORRENT_EXPORT add_torrent_alert final : torrent_alert { // internal - add_torrent_alert(aux::stack_allocator& alloc, torrent_handle h - , add_torrent_params const& p, error_code ec); + add_torrent_alert(aux::stack_allocator& alloc, torrent_handle const& h + , add_torrent_params const& p, error_code const& ec); TORRENT_DEFINE_ALERT_PRIO(add_torrent_alert, 67) diff --git a/src/alert.cpp b/src/alert.cpp index a88c8bfeb..d0179f702 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -1358,8 +1358,8 @@ namespace libtorrent { return msg; } - add_torrent_alert::add_torrent_alert(aux::stack_allocator& alloc, torrent_handle h - , add_torrent_params const& p, error_code ec) + add_torrent_alert::add_torrent_alert(aux::stack_allocator& alloc, torrent_handle const& h + , add_torrent_params const& p, error_code const& ec) : torrent_alert(alloc, h) , params(p) , error(ec)