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/AbstractCommand.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/AbstractCommand.cc') diff --git a/src/AbstractCommand.cc b/src/AbstractCommand.cc index f2b88040..2df0141b 100644 --- a/src/AbstractCommand.cc +++ b/src/AbstractCommand.cc @@ -748,7 +748,7 @@ std::shared_ptr AbstractCommand::createProxyRequest() const std::string proxy = getProxyUri(req_->getProtocol(), getOption().get()); if (!proxy.empty()) { - proxyRequest.reset(new Request()); + proxyRequest = std::make_shared(); if (proxyRequest->setUri(proxy)) { A2_LOG_DEBUG(fmt("CUID#%" PRId64 " - Using proxy", getCuid())); } @@ -896,7 +896,7 @@ const std::shared_ptr