diff options
author | Jan Holesovsky <kendy@collabora.com> | 2018-05-09 20:25:58 +0200 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2018-05-18 15:16:40 +0200 |
commit | 93cc4b4548e3abcefc282e05ddf46677f8dd2897 (patch) | |
tree | 12ec74b3985bf75737b52683bc176062cf31a110 /tools | |
parent | 6996139e5fba0310ddc9d97f2005a3383818ec7a (diff) |
Use std::shared_ptr consistently.
Change-Id: I6bf3ff7de47010fd78fab26a5a318bde21c1f153
Diffstat (limited to 'tools')
-rw-r--r-- | tools/WebSocketDump.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/WebSocketDump.cpp b/tools/WebSocketDump.cpp index 202bff3f7..777a2c82e 100644 --- a/tools/WebSocketDump.cpp +++ b/tools/WebSocketDump.cpp @@ -205,9 +205,9 @@ public: { #if ENABLE_SSL if (_isSSL) - return StreamSocket::create<SslStreamSocket>(physicalFd, false, std::unique_ptr<SocketHandlerInterface>{ new ClientRequestDispatcher }); + return StreamSocket::create<SslStreamSocket>(physicalFd, false, std::make_shared<ClientRequestDispatcher>()); #endif - return StreamSocket::create<StreamSocket>(physicalFd, false, std::unique_ptr<SocketHandlerInterface>{ new ClientRequestDispatcher }); + return StreamSocket::create<StreamSocket>(physicalFd, false, std::make_shared<ClientRequestDispatcher>()); } }; |