Replaced sigc++ calles for torrent::Http with tr1::bind.

This commit is contained in:
Jari Sundell
2011-11-17 01:06:52 +09:00
parent 00a42357d0
commit 308d91f817
3 changed files with 12 additions and 6 deletions
+4 -2
View File
@@ -46,6 +46,8 @@
#include "http_queue.h"
#include "curl_get.h"
namespace std { using namespace tr1; }
namespace core {
HttpQueue::iterator
@@ -58,8 +60,8 @@ HttpQueue::insert(const std::string& url, std::iostream* s) {
iterator itr = Base::insert(end(), h.get());
h->signal_done().connect(sigc::bind(sigc::mem_fun(this, &HttpQueue::erase), itr));
h->signal_failed().connect(sigc::bind<0>(sigc::hide(sigc::mem_fun(this, &HttpQueue::erase)), itr));
h->signal_done().push_back(std::bind(&HttpQueue::erase, this, itr));
h->signal_failed().push_back(std::bind(&HttpQueue::erase, this, itr));
(*itr)->start();