summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
committerCarl Hetherington <cth@carlh.net>2016-06-21 01:14:06 +0100
commit5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f (patch)
tree769dca1358e35017ce5a5b3ab2dfafe2b24d61ed /src/lib/server.cc
parent4e83acad0c2a5c528709a175a80261b8147d3b49 (diff)
Use make_shared<>.
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index 09e0a4bd0..d90ec9116 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -20,10 +20,12 @@
#include "server.h"
#include "dcpomatic_socket.h"
+#include <boost/make_shared.hpp>
#include "i18n.h"
using boost::shared_ptr;
+using boost::make_shared;
Server::Server (int port)
: _terminate (false)
@@ -56,7 +58,7 @@ Server::start_accept ()
}
}
- shared_ptr<Socket> socket (new Socket);
+ shared_ptr<Socket> socket = make_shared<Socket> ();
_acceptor.async_accept (socket->socket (), boost::bind (&Server::handle_accept, this, socket, boost::asio::placeholders::error));
}