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
+6 -2
View File
@@ -46,6 +46,8 @@
#include "curl_socket.h"
#include "curl_stack.h"
namespace std { using namespace tr1; }
namespace core {
CurlStack::CurlStack() :
@@ -131,9 +133,11 @@ CurlStack::transfer_done(void* handle, const char* msg) {
throw torrent::internal_error("Could not find CurlGet with the right easy_handle.");
if (msg == NULL)
(*itr)->signal_done().emit();
std::for_each((*itr)->signal_done().begin(), (*itr)->signal_done().end(),
std::bind(&torrent::Http::slot_void::operator(), std::placeholders::_1));
else
(*itr)->signal_failed().emit(msg);
std::for_each((*itr)->signal_failed().begin(), (*itr)->signal_failed().end(),
std::bind(&torrent::Http::slot_string::operator(), std::placeholders::_1, msg));
}
void