fixed torrent alert assert
This commit is contained in:
parent
c5af2c2eaf
commit
e49c015c92
|
@ -85,7 +85,7 @@ namespace libtorrent
|
||||||
, std::string const& url_)
|
, std::string const& url_)
|
||||||
: torrent_alert(h)
|
: torrent_alert(h)
|
||||||
, url(url_)
|
, url(url_)
|
||||||
{ assert(!url.empty()); }
|
{}
|
||||||
|
|
||||||
const static int static_category = alert::tracker_notification;
|
const static int static_category = alert::tracker_notification;
|
||||||
virtual int category() const { return static_category; }
|
virtual int category() const { return static_category; }
|
||||||
|
@ -191,7 +191,7 @@ namespace libtorrent
|
||||||
, times_in_row(times)
|
, times_in_row(times)
|
||||||
, status_code(status)
|
, status_code(status)
|
||||||
, msg(msg_)
|
, msg(msg_)
|
||||||
{}
|
{ TORRENT_ASSERT(!url.empty()); }
|
||||||
|
|
||||||
virtual std::auto_ptr<alert> clone() const
|
virtual std::auto_ptr<alert> clone() const
|
||||||
{ return std::auto_ptr<alert>(new tracker_error_alert(*this)); }
|
{ return std::auto_ptr<alert>(new tracker_error_alert(*this)); }
|
||||||
|
@ -218,7 +218,7 @@ namespace libtorrent
|
||||||
, std::string const& msg_)
|
, std::string const& msg_)
|
||||||
: tracker_alert(h, url)
|
: tracker_alert(h, url)
|
||||||
, msg(msg_)
|
, msg(msg_)
|
||||||
{}
|
{ TORRENT_ASSERT(!url.empty()); }
|
||||||
|
|
||||||
std::string msg;
|
std::string msg;
|
||||||
|
|
||||||
|
@ -242,7 +242,7 @@ namespace libtorrent
|
||||||
: tracker_alert(h, url)
|
: tracker_alert(h, url)
|
||||||
, incomplete(incomplete_)
|
, incomplete(incomplete_)
|
||||||
, complete(complete_)
|
, complete(complete_)
|
||||||
{}
|
{ TORRENT_ASSERT(!url.empty()); }
|
||||||
|
|
||||||
int incomplete;
|
int incomplete;
|
||||||
int complete;
|
int complete;
|
||||||
|
@ -265,7 +265,7 @@ namespace libtorrent
|
||||||
, std::string const& msg_)
|
, std::string const& msg_)
|
||||||
: tracker_alert(h, url)
|
: tracker_alert(h, url)
|
||||||
, msg(msg_)
|
, msg(msg_)
|
||||||
{}
|
{ TORRENT_ASSERT(!url.empty()); }
|
||||||
|
|
||||||
std::string msg;
|
std::string msg;
|
||||||
|
|
||||||
|
@ -287,7 +287,7 @@ namespace libtorrent
|
||||||
, std::string const& url)
|
, std::string const& url)
|
||||||
: tracker_alert(h, url)
|
: tracker_alert(h, url)
|
||||||
, num_peers(np)
|
, num_peers(np)
|
||||||
{}
|
{ TORRENT_ASSERT(!url.empty()); }
|
||||||
|
|
||||||
int num_peers;
|
int num_peers;
|
||||||
|
|
||||||
|
@ -327,7 +327,7 @@ namespace libtorrent
|
||||||
, std::string const& url, int event_)
|
, std::string const& url, int event_)
|
||||||
: tracker_alert(h, url)
|
: tracker_alert(h, url)
|
||||||
, event(event_)
|
, event(event_)
|
||||||
{}
|
{ TORRENT_ASSERT(!url.empty()); }
|
||||||
|
|
||||||
int event;
|
int event;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue