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/HttpProxyResponseCommand.cc | |
| parent | bb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff) | |
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/HttpProxyResponseCommand.cc')
| -rw-r--r-- | src/HttpProxyResponseCommand.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/HttpProxyResponseCommand.cc b/src/HttpProxyResponseCommand.cc index cfadc609..630d7eba 100644 --- a/src/HttpProxyResponseCommand.cc +++ b/src/HttpProxyResponseCommand.cc @@ -57,11 +57,12 @@ HttpProxyResponseCommand::HttpProxyResponseCommand HttpProxyResponseCommand::~HttpProxyResponseCommand() {} -Command* HttpProxyResponseCommand::getNextCommand() +std::unique_ptr<Command> HttpProxyResponseCommand::getNextCommand() { - return new HttpRequestCommand(getCuid(), getRequest(), getFileEntry(), - getRequestGroup(), getHttpConnection(), - getDownloadEngine(), getSocket()); + return make_unique<HttpRequestCommand> + (getCuid(), getRequest(), getFileEntry(), + getRequestGroup(), getHttpConnection(), + getDownloadEngine(), getSocket()); } } // namespace aria2 |
