From de69453826a7a192a2b3f75ecd499d6de761c4f1 Mon Sep 17 00:00:00 2001
From: Arvid Norberg
-struct torrent_finished_alert:torrent_ alert +struct torrent_finished_alert: torrent_alert { torrent_finished_alert( const torrent_handle& h @@ -2714,13 +2714,12 @@ struct metadata_received_alert: torrent_alert files on disk did not match the fastresume file. The string explains the reason why the resume file was rejected. It is generated at severity level warning.-struct fastresume_rejected_alert: alert +struct fastresume_rejected_alert: torrent_alert { fastresume_rejected_alert(torrent_handle const& h , std::string const& msg); virtual std::auto_ptr<alert> clone() const; - torrent_handle handle; };diff --git a/docs/manual.rst b/docs/manual.rst index 01633fca5..bdb262069 100755 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -2742,7 +2742,7 @@ torrent in question. This alert is generated as severity level ``info``. :: - struct torrent_finished_alert:torrent_ alert + struct torrent_finished_alert: torrent_alert { torrent_finished_alert( const torrent_handle& h @@ -2802,13 +2802,12 @@ resume file was rejected. It is generated at severity level ``warning``. :: - struct fastresume_rejected_alert: alert + struct fastresume_rejected_alert: torrent_alert { fastresume_rejected_alert(torrent_handle const& h , std::string const& msg); virtual std::auto_ptrclone() const; - torrent_handle handle; }; diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index c9127c5c4..878185e42 100755 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -249,18 +249,15 @@ namespace libtorrent { return std::auto_ptr (new listen_failed_alert(*this)); } }; - struct TORRENT_EXPORT fastresume_rejected_alert: alert + struct TORRENT_EXPORT fastresume_rejected_alert: torrent_alert { fastresume_rejected_alert(torrent_handle const& h , std::string const& msg) - : alert(alert::warning, msg) - , handle(h) + : torrent_alert(h, alert::warning, msg) {} virtual std::auto_ptr clone() const { return std::auto_ptr (new fastresume_rejected_alert(*this)); } - - torrent_handle handle; }; }