summaryrefslogtreecommitdiff
path: root/src/CheckIntegrityEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 21:55:52 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2013-06-23 21:55:52 +0900
commitfa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 (patch)
treedeb0b47b085a3a689bf386409734bfd3f72f57d2 /src/CheckIntegrityEntry.cc
parentbb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff)
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/CheckIntegrityEntry.cc')
-rw-r--r--src/CheckIntegrityEntry.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc
index 57252118..93a3fc20 100644
--- a/src/CheckIntegrityEntry.cc
+++ b/src/CheckIntegrityEntry.cc
@@ -45,8 +45,8 @@
namespace aria2 {
CheckIntegrityEntry::CheckIntegrityEntry(RequestGroup* requestGroup,
- Command* nextCommand):
- RequestGroupEntry(requestGroup, nextCommand)
+ std::unique_ptr<Command> nextCommand):
+ RequestGroupEntry(requestGroup, std::move(nextCommand))
{}
CheckIntegrityEntry::~CheckIntegrityEntry() {}
@@ -85,7 +85,7 @@ void CheckIntegrityEntry::cutTrailingGarbage()
}
void CheckIntegrityEntry::proceedFileAllocation
-(std::vector<Command*>& commands,
+(std::vector<std::unique_ptr<Command>>& commands,
const std::shared_ptr<FileAllocationEntry>& entry,
DownloadEngine* e)
{