using consts refs in add_torrent_alert (#1124)

This commit is contained in:
Alden Torres 2016-09-21 02:14:42 -04:00 committed by Arvid Norberg
parent 35f98f6a4d
commit f139776542
2 changed files with 4 additions and 4 deletions

View File

@ -1815,8 +1815,8 @@ namespace libtorrent
struct TORRENT_EXPORT add_torrent_alert final : torrent_alert struct TORRENT_EXPORT add_torrent_alert final : torrent_alert
{ {
// internal // internal
add_torrent_alert(aux::stack_allocator& alloc, torrent_handle h add_torrent_alert(aux::stack_allocator& alloc, torrent_handle const& h
, add_torrent_params const& p, error_code ec); , add_torrent_params const& p, error_code const& ec);
TORRENT_DEFINE_ALERT_PRIO(add_torrent_alert, 67) TORRENT_DEFINE_ALERT_PRIO(add_torrent_alert, 67)

View File

@ -1358,8 +1358,8 @@ namespace libtorrent {
return msg; return msg;
} }
add_torrent_alert::add_torrent_alert(aux::stack_allocator& alloc, torrent_handle h add_torrent_alert::add_torrent_alert(aux::stack_allocator& alloc, torrent_handle const& h
, add_torrent_params const& p, error_code ec) , add_torrent_params const& p, error_code const& ec)
: torrent_alert(alloc, h) : torrent_alert(alloc, h)
, params(p) , params(p)
, error(ec) , error(ec)