From 13ceee7a55c7b969f265077e7218abb94430849a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 17 Jan 2009 18:47:35 +0000 Subject: [PATCH] fixed boost-1.34 compatibility --- src/torrent.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/torrent.cpp b/src/torrent.cpp index a99244ede..8b28b9d6a 100644 --- a/src/torrent.cpp +++ b/src/torrent.cpp @@ -2761,13 +2761,13 @@ namespace libtorrent boost::intrusive_ptr c; if (web.type == web_seed_entry::url_seed) { - c.reset(new (std::nothrow) web_peer_connection( - m_ses, shared_from_this(), s, a, web.url, 0)); + c = new (std::nothrow) web_peer_connection( + m_ses, shared_from_this(), s, a, web.url, 0); } else if (web.type == web_seed_entry::http_seed) { - c.reset(new (std::nothrow) http_seed_connection( - m_ses, shared_from_this(), s, a, web.url, 0)); + c = new (std::nothrow) http_seed_connection( + m_ses, shared_from_this(), s, a, web.url, 0); } if (!c) return;