diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 519dc9a9c..ac17f257c 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -2123,7 +2123,7 @@ namespace libtorrent // This alert is posted by some session wide event. Its main purpose is // trouble shooting and debugging. It's not enabled by the default alert // mask and is enabled by the ``alert::session_log_notification`` bit. - // Furhtermore, it's by default disabled as a build configuration. + // Furthermore, it's by default disabled as a build configuration. struct TORRENT_EXPORT log_alert TORRENT_FINAL : alert { // internal @@ -2149,7 +2149,7 @@ namespace libtorrent struct TORRENT_EXPORT torrent_log_alert TORRENT_FINAL : torrent_alert { // internal - torrent_log_alert(aux::stack_allocator& alloc, torrent_handle h + torrent_log_alert(aux::stack_allocator& alloc, torrent_handle const& h , char const* log); TORRENT_DEFINE_ALERT(torrent_log_alert, 80) @@ -2444,7 +2444,7 @@ namespace libtorrent #ifndef TORRENT_DISABLE_LOGGING // internal - picker_log_alert(aux::stack_allocator& alloc, torrent_handle h + picker_log_alert(aux::stack_allocator& alloc, torrent_handle const& h , tcp::endpoint const& ep, peer_id const& peer_id, boost::uint32_t flags , piece_block const* blocks, int num_blocks); @@ -2496,7 +2496,7 @@ namespace libtorrent #undef TORRENT_DEFINE_ALERT_PRIO #undef TORRENT_CLONE - enum { num_alert_types = 89 }; + enum { num_alert_types = 90 }; // this enum represents "max_alert_index" + 1 } diff --git a/src/alert.cpp b/src/alert.cpp index 2802a373e..a715a15de 100644 --- a/src/alert.cpp +++ b/src/alert.cpp @@ -1571,7 +1571,7 @@ namespace libtorrent { return msg(); } - torrent_log_alert::torrent_log_alert(aux::stack_allocator& alloc, torrent_handle h + torrent_log_alert::torrent_log_alert(aux::stack_allocator& alloc, torrent_handle const& h , char const* log) : torrent_alert(alloc, h) , m_str_idx(alloc.copy_string(log)) @@ -1898,7 +1898,7 @@ namespace libtorrent { #ifndef TORRENT_DISABLE_LOGGING - picker_log_alert::picker_log_alert(aux::stack_allocator& alloc, torrent_handle h + picker_log_alert::picker_log_alert(aux::stack_allocator& alloc, torrent_handle const& h , tcp::endpoint const& ep, peer_id const& peer_id, boost::uint32_t flags , piece_block const* blocks, int num_blocks) : peer_alert(alloc, h, ep, peer_id)