X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fjson_server.cc;h=6e53f9819c3fcddd2bc1c21324705037556ef5ef;hp=0006201e66c3b6a04bb52d01c4fa222ad55d3a37;hb=5a5324ed3a381a86dfe0a6e3932c1d58fdcd596f;hpb=4e83acad0c2a5c528709a175a80261b8147d3b49 diff --git a/src/lib/json_server.cc b/src/lib/json_server.cc index 0006201e6..6e53f9819 100644 --- a/src/lib/json_server.cc +++ b/src/lib/json_server.cc @@ -27,6 +27,7 @@ #include "util.h" #include "film.h" #include "transcode_job.h" +#include #include using std::string; @@ -35,6 +36,7 @@ using std::map; using std::list; using boost::thread; using boost::shared_ptr; +using boost::make_shared; using boost::dynamic_pointer_cast; using boost::asio::ip::tcp; @@ -61,7 +63,7 @@ try tcp::acceptor a (io_service, tcp::endpoint (tcp::v4 (), port)); while (true) { try { - shared_ptr s (new tcp::socket (io_service)); + shared_ptr s = make_shared (io_service); a.accept (*s); handle (s); }