fixed torrent alert assert

This commit is contained in:
Arvid Norberg 2008-07-12 11:04:23 +00:00
parent c5af2c2eaf
commit e49c015c92
1 changed files with 7 additions and 7 deletions

View File

@ -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<alert> clone() const
{ return std::auto_ptr<alert>(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;