]> git.tdb.fi Git - libs/net.git/commitdiff
Change Client::signal_socket_error parameter to reference
authorMikko Rasa <tdb@tdb.fi>
Wed, 10 Aug 2011 19:18:26 +0000 (22:18 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 10 Aug 2011 19:18:26 +0000 (22:18 +0300)
source/http/client.cpp
source/http/client.h

index 3d14b04e59d45b22889d8c699eab428829a16ea5..80815e0c9f6c33a5ced29e65cb6c82674c8b8b97 100644 (file)
@@ -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;
        }
 
index c8b154c728f56627c96454b42de767835f602246..37acf0cfe0e3bb08d1483520e9a3cd7bc557dc76 100644 (file)
@@ -23,7 +23,7 @@ class Client
 {
 public:
        sigc::signal<void, const Response &> signal_response_complete;
-       sigc::signal<void, const std::exception *> signal_socket_error;
+       sigc::signal<void, const std::exception &> signal_socket_error;
 
 private:
        Net::StreamSocket *sock;