From: Mikko Rasa Date: Wed, 10 Aug 2011 19:18:26 +0000 (+0300) Subject: Change Client::signal_socket_error parameter to reference X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6af1bfce6dc53104c5406adef32d186384525ae3;p=libs%2Fnet.git Change Client::signal_socket_error parameter to reference --- diff --git a/source/http/client.cpp b/source/http/client.cpp index 3d14b04..80815e0 100644 --- a/source/http/client.cpp +++ b/source/http/client.cpp @@ -108,7 +108,7 @@ void Client::connect_finished(const exception *err) { if(err) { - signal_socket_error.emit(err); + signal_socket_error.emit(*err); delete request; request = 0; @@ -127,7 +127,7 @@ void Client::data_available() } catch(const exception &e) { - signal_socket_error.emit(&e); + signal_socket_error.emit(e); return; } diff --git a/source/http/client.h b/source/http/client.h index c8b154c..37acf0c 100644 --- a/source/http/client.h +++ b/source/http/client.h @@ -23,7 +23,7 @@ class Client { public: sigc::signal signal_response_complete; - sigc::signal signal_socket_error; + sigc::signal signal_socket_error; private: Net::StreamSocket *sock;