diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-22 01:10:38 +0900 |
| commit | 07d270c87e6f9184aea4ca17eb26e466712e8db2 (patch) | |
| tree | 2dfbaa2e0d2ad0f38cb73098608f7d67a64320f8 /src/AbstractProxyResponseCommand.cc | |
| parent | 126a4bde612eb0e6c48cf2f13ebe3eac45cc71a8 (diff) | |
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
Diffstat (limited to 'src/AbstractProxyResponseCommand.cc')
| -rw-r--r-- | src/AbstractProxyResponseCommand.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<Request>& req, - const SharedHandle<FileEntry>& fileEntry, + const std::shared_ptr<Request>& req, + const std::shared_ptr<FileEntry>& fileEntry, RequestGroup* requestGroup, - const SharedHandle<HttpConnection>& httpConnection, + const std::shared_ptr<HttpConnection>& httpConnection, DownloadEngine* e, - const SharedHandle<SocketCore>& s) + const std::shared_ptr<SocketCore>& s) :AbstractCommand(cuid, req, fileEntry, requestGroup, e, s), httpConnection_(httpConnection) {} AbstractProxyResponseCommand::~AbstractProxyResponseCommand() {} bool AbstractProxyResponseCommand::executeInternal() { - SharedHandle<HttpResponse> httpResponse = httpConnection_->receiveResponse(); + std::shared_ptr<HttpResponse> httpResponse = httpConnection_->receiveResponse(); if(!httpResponse) { // the server has not responded our request yet. getDownloadEngine()->addCommand(this); |
