diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2013-06-23 21:55:52 +0900 |
| commit | fa9f3fb5a3c8912a0a6880ffba9c72f4424ea044 (patch) | |
| tree | deb0b47b085a3a689bf386409734bfd3f72f57d2 /src/StreamFileAllocationEntry.cc | |
| parent | bb5b7eeedb3ce7396007818cbab4f5f5660997a5 (diff) | |
Wrap Command object in std::unique_ptr
Diffstat (limited to 'src/StreamFileAllocationEntry.cc')
| -rw-r--r-- | src/StreamFileAllocationEntry.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<Command> nextCommand): + FileAllocationEntry(requestGroup, std::move(nextCommand)) {} StreamFileAllocationEntry::~StreamFileAllocationEntry() {} void StreamFileAllocationEntry::prepareForNextAction -(std::vector<Command*>& commands, +(std::vector<std::unique_ptr<Command>>& commands, DownloadEngine* e) { // For DownloadContext::resetDownloadStartTime(), see also |
