From 7fdb7a18616c6b8b2339df105629e251e79c6cf2 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Sat, 25 Feb 2017 14:08:03 -0500 Subject: nb: StreamSocket takes ownership of SocketHandler instance Change-Id: Ica99dc8afbcca71c8d79eecb276ba19f6f01fa57 --- net/SslSocket.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net/SslSocket.hpp') 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 responseClient) : + StreamSocket(fd, std::move(responseClient)), _ssl(nullptr), _sslWantsTo(SslWantsTo::ReadOrWrite), _doHandshake(true) -- cgit v1.2.3