From fa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 23 Jun 2013 21:55:52 +0900 Subject: Wrap Command object in std::unique_ptr --- src/StreamFileAllocationEntry.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/StreamFileAllocationEntry.cc') diff --git a/src/StreamFileAllocationEntry.cc b/src/StreamFileAllocationEntry.cc index 9afa6f29..d30018a2 100644 --- a/src/StreamFileAllocationEntry.cc +++ b/src/StreamFileAllocationEntry.cc @@ -49,15 +49,15 @@ namespace aria2 { -StreamFileAllocationEntry::StreamFileAllocationEntry(RequestGroup* requestGroup, - Command* nextCommand): - FileAllocationEntry(requestGroup, nextCommand) +StreamFileAllocationEntry::StreamFileAllocationEntry +(RequestGroup* requestGroup, std::unique_ptr nextCommand): + FileAllocationEntry(requestGroup, std::move(nextCommand)) {} StreamFileAllocationEntry::~StreamFileAllocationEntry() {} void StreamFileAllocationEntry::prepareForNextAction -(std::vector& commands, +(std::vector>& commands, DownloadEngine* e) { // For DownloadContext::resetDownloadStartTime(), see also -- cgit