summaryrefslogtreecommitdiff
path: root/src/HttpDownloadCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-03 23:42:55 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-07-03 23:42:55 +0900
commit9a38c102dc4ff4a0a7cc96ccef7cd1400f37eea5 (patch)
tree22623c7b5af1912f58bd4395c4b6ba7ed62da83f /src/HttpDownloadCommand.cc
parent7e6db8d801973bfc62b80f411f14d1d332a1f7aa (diff)
Use std::unique_ptr for HttpResponse instead of std::shared_ptr
Diffstat (limited to 'src/HttpDownloadCommand.cc')
-rw-r--r--src/HttpDownloadCommand.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HttpDownloadCommand.cc b/src/HttpDownloadCommand.cc
index 93cca2d0..1a76c88b 100644
--- a/src/HttpDownloadCommand.cc
+++ b/src/HttpDownloadCommand.cc
@@ -60,13 +60,13 @@ HttpDownloadCommand::HttpDownloadCommand
const std::shared_ptr<Request>& req,
const std::shared_ptr<FileEntry>& fileEntry,
RequestGroup* requestGroup,
- const std::shared_ptr<HttpResponse>& httpResponse,
+ std::unique_ptr<HttpResponse> httpResponse,
const std::shared_ptr<HttpConnection>& httpConnection,
DownloadEngine* e,
const std::shared_ptr<SocketCore>& socket)
: DownloadCommand(cuid, req, fileEntry, requestGroup, e, socket,
httpConnection->getSocketRecvBuffer()),
- httpResponse_(httpResponse),
+ httpResponse_(std::move(httpResponse)),
httpConnection_(httpConnection)
{}