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/FileAllocationEntry.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/FileAllocationEntry.cc') diff --git a/src/FileAllocationEntry.cc b/src/FileAllocationEntry.cc index 143b0b33..4a580398 100644 --- a/src/FileAllocationEntry.cc +++ b/src/FileAllocationEntry.cc @@ -41,8 +41,9 @@ namespace aria2 { -FileAllocationEntry::FileAllocationEntry(RequestGroup* requestGroup, Command* nextCommand): - RequestGroupEntry(requestGroup, nextCommand), +FileAllocationEntry::FileAllocationEntry(RequestGroup* requestGroup, + std::unique_ptr nextCommand): + RequestGroupEntry(requestGroup, std::move(nextCommand)), fileAllocationIterator_(requestGroup->getPieceStorage()->getDiskAdaptor()->fileAllocationIterator()) {} -- cgit