diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
| commit | fa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 (patch) | |
| tree | deb0b47b085a3a689bf386409734bfd3f72f57d2 /src/HttpProxyRequestCommand.cc | |
| parent | bb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff) | |
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/HttpProxyRequestCommand.cc')
| -rw-r--r-- | src/HttpProxyRequestCommand.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/HttpProxyRequestCommand.cc b/src/HttpProxyRequestCommand.cc index 2143f398..f639ac70 100644 --- a/src/HttpProxyRequestCommand.cc +++ b/src/HttpProxyRequestCommand.cc @@ -37,6 +37,7 @@ #include "Request.h" #include "SocketCore.h" #include "SocketRecvBuffer.h" +#include "a2functional.h" namespace aria2 { @@ -55,9 +56,9 @@ HttpProxyRequestCommand::HttpProxyRequestCommand HttpProxyRequestCommand::~HttpProxyRequestCommand() {} -Command* HttpProxyRequestCommand::getNextCommand() +std::unique_ptr<Command> HttpProxyRequestCommand::getNextCommand() { - return new HttpProxyResponseCommand + return make_unique<HttpProxyResponseCommand> (getCuid(), getRequest(), getFileEntry(), getRequestGroup(), getHttpConnection(), getDownloadEngine(), getSocket()); } |
