fixed boost-1.34 compatibility

This commit is contained in:
Arvid Norberg 2009-01-17 18:47:35 +00:00
parent 7529225870
commit 13ceee7a55
1 changed files with 4 additions and 4 deletions

View File

@ -2761,13 +2761,13 @@ namespace libtorrent
boost::intrusive_ptr<peer_connection> c; boost::intrusive_ptr<peer_connection> c;
if (web.type == web_seed_entry::url_seed) if (web.type == web_seed_entry::url_seed)
{ {
c.reset(new (std::nothrow) web_peer_connection( c = new (std::nothrow) web_peer_connection(
m_ses, shared_from_this(), s, a, web.url, 0)); m_ses, shared_from_this(), s, a, web.url, 0);
} }
else if (web.type == web_seed_entry::http_seed) else if (web.type == web_seed_entry::http_seed)
{ {
c.reset(new (std::nothrow) http_seed_connection( c = new (std::nothrow) http_seed_connection(
m_ses, shared_from_this(), s, a, web.url, 0)); m_ses, shared_from_this(), s, a, web.url, 0);
} }
if (!c) return; if (!c) return;