summaryrefslogtreecommitdiff
path: root/src/HttpProxyResponseCommand.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/HttpProxyResponseCommand.cc')
-rw-r--r--src/HttpProxyResponseCommand.cc9
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