From 2807258279d8ddbef01ca1c20a87c14aa084620c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 13 Sep 2014 00:07:21 +0900 Subject: Use std::make_shared and make_unique where possible, part 1 --- src/AbstractProxyRequestCommand.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AbstractProxyRequestCommand.cc') diff --git a/src/AbstractProxyRequestCommand.cc b/src/AbstractProxyRequestCommand.cc index f515bd68..6d52ea9c 100644 --- a/src/AbstractProxyRequestCommand.cc +++ b/src/AbstractProxyRequestCommand.cc @@ -61,8 +61,8 @@ AbstractProxyRequestCommand::AbstractProxyRequestCommand AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), proxyRequest_(proxyRequest), httpConnection_ - (new HttpConnection - (cuid, s, std::shared_ptr(new SocketRecvBuffer(s)))) + (std::make_shared + (cuid, s, std::make_shared(s))) { setTimeout(getOption()->getAsInt(PREF_CONNECT_TIMEOUT)); disableReadCheckSocket(); -- cgit