fixed torrent alert assert
This commit is contained in:
parent
c5af2c2eaf
commit
e49c015c92
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue