From 07d270c87e6f9184aea4ca17eb26e466712e8db2 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 22 Jun 2013 01:10:38 +0900 Subject: Require -std=c++11 and use std::shared_ptr instead of SharedHandle --- src/AbstractProxyResponseCommand.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/AbstractProxyResponseCommand.cc') diff --git a/src/AbstractProxyResponseCommand.cc b/src/AbstractProxyResponseCommand.cc index 32c5bb0e..c490f020 100644 --- a/src/AbstractProxyResponseCommand.cc +++ b/src/AbstractProxyResponseCommand.cc @@ -52,19 +52,19 @@ namespace aria2 { AbstractProxyResponseCommand::AbstractProxyResponseCommand (cuid_t cuid, - const SharedHandle& req, - const SharedHandle& fileEntry, + const std::shared_ptr& req, + const std::shared_ptr& fileEntry, RequestGroup* requestGroup, - const SharedHandle& httpConnection, + const std::shared_ptr& httpConnection, DownloadEngine* e, - const SharedHandle& s) + const std::shared_ptr& s) :AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), httpConnection_(httpConnection) {} AbstractProxyResponseCommand::~AbstractProxyResponseCommand() {} bool AbstractProxyResponseCommand::executeInternal() { - SharedHandle httpResponse = httpConnection_->receiveResponse(); + std::shared_ptr httpResponse = httpConnection_->receiveResponse(); if(!httpResponse) { // the server has not responded our request yet. getDownloadEngine()->addCommand(this); -- cgit