From e49c015c928e118c56238f0f0b35391db55e6b2e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 12 Jul 2008 11:04:23 +0000 Subject: [PATCH] fixed torrent alert assert --- include/libtorrent/alert_types.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/libtorrent/alert_types.hpp b/include/libtorrent/alert_types.hpp index 61a1d6c12..88ce8f0dd 100644 --- a/include/libtorrent/alert_types.hpp +++ b/include/libtorrent/alert_types.hpp @@ -85,7 +85,7 @@ namespace libtorrent , std::string const& url_) : torrent_alert(h) , url(url_) - { assert(!url.empty()); } + {} const static int static_category = alert::tracker_notification; virtual int category() const { return static_category; } @@ -191,7 +191,7 @@ namespace libtorrent , times_in_row(times) , status_code(status) , msg(msg_) - {} + { TORRENT_ASSERT(!url.empty()); } virtual std::auto_ptr clone() const { return std::auto_ptr(new tracker_error_alert(*this)); } @@ -218,7 +218,7 @@ namespace libtorrent , std::string const& msg_) : tracker_alert(h, url) , msg(msg_) - {} + { TORRENT_ASSERT(!url.empty()); } std::string msg; @@ -242,7 +242,7 @@ namespace libtorrent : tracker_alert(h, url) , incomplete(incomplete_) , complete(complete_) - {} + { TORRENT_ASSERT(!url.empty()); } int incomplete; int complete; @@ -265,7 +265,7 @@ namespace libtorrent , std::string const& msg_) : tracker_alert(h, url) , msg(msg_) - {} + { TORRENT_ASSERT(!url.empty()); } std::string msg; @@ -287,7 +287,7 @@ namespace libtorrent , std::string const& url) : tracker_alert(h, url) , num_peers(np) - {} + { TORRENT_ASSERT(!url.empty()); } int num_peers; @@ -327,7 +327,7 @@ namespace libtorrent , std::string const& url, int event_) : tracker_alert(h, url) , event(event_) - {} + { TORRENT_ASSERT(!url.empty()); } int event;