summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@collabora.com>2018-05-09 20:25:58 +0200
committerJan Holesovsky <kendy@collabora.com>2018-05-18 15:16:40 +0200
commit93cc4b4548e3abcefc282e05ddf46677f8dd2897 (patch)
tree12ec74b3985bf75737b52683bc176062cf31a110 /tools
parent6996139e5fba0310ddc9d97f2005a3383818ec7a (diff)
Use std::shared_ptr consistently.
Change-Id: I6bf3ff7de47010fd78fab26a5a318bde21c1f153
Diffstat (limited to 'tools')
-rw-r--r--tools/WebSocketDump.cpp4
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>());
}
};