diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-02-25 14:08:03 -0500 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-03-10 10:47:39 +0100 |
commit | 7fdb7a18616c6b8b2339df105629e251e79c6cf2 (patch) | |
tree | 804d8e18dc6181892826e9e06f539ff897cbb741 /net/SslSocket.hpp | |
parent | d9394d700093ab426ef305974a1115755840ade6 (diff) |
nb: StreamSocket takes ownership of SocketHandler instance
Change-Id: Ica99dc8afbcca71c8d79eecb276ba19f6f01fa57
Diffstat (limited to 'net/SslSocket.hpp')
-rw-r--r-- | net/SslSocket.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/SslSocket.hpp b/net/SslSocket.hpp index 87b4b339b..0f43869d2 100644 --- a/net/SslSocket.hpp +++ b/net/SslSocket.hpp @@ -21,8 +21,8 @@ class SslStreamSocket : public StreamSocket { public: - SslStreamSocket(const int fd, SocketHandlerInterface* responseClient) : - StreamSocket(fd, responseClient), + SslStreamSocket(const int fd, std::unique_ptr<SocketHandlerInterface> responseClient) : + StreamSocket(fd, std::move(responseClient)), _ssl(nullptr), _sslWantsTo(SslWantsTo::ReadOrWrite), _doHandshake(true) |