From 9b84727324168f4d781ab5c69f627603a219eb92 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 13 Sep 2014 18:37:57 +0900 Subject: Use std::make_shared and make_unique where possible, part 2 --- src/HttpServerCommand.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/HttpServerCommand.cc') diff --git a/src/HttpServerCommand.cc b/src/HttpServerCommand.cc index 4a4d6d61..59159a82 100644 --- a/src/HttpServerCommand.cc +++ b/src/HttpServerCommand.cc @@ -67,7 +67,7 @@ HttpServerCommand::HttpServerCommand : Command(cuid), e_(e), socket_(socket), - httpServer_(new HttpServer(socket)), + httpServer_(std::make_shared(socket)), writeCheck_(false) { setStatus(Command::STATUS_ONESHOT_REALTIME); -- cgit