diff options
Diffstat (limited to 'src/StreamCheckIntegrityEntry.cc')
| -rw-r--r-- | src/StreamCheckIntegrityEntry.cc | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/StreamCheckIntegrityEntry.cc b/src/StreamCheckIntegrityEntry.cc index aa345806..2f5500a0 100644 --- a/src/StreamCheckIntegrityEntry.cc +++ b/src/StreamCheckIntegrityEntry.cc @@ -42,29 +42,30 @@ namespace aria2 { -StreamCheckIntegrityEntry::StreamCheckIntegrityEntry -(RequestGroup* requestGroup, std::unique_ptr<Command> nextCommand): - PieceHashCheckIntegrityEntry(requestGroup, std::move(nextCommand)) -{} +StreamCheckIntegrityEntry::StreamCheckIntegrityEntry( + RequestGroup* requestGroup, std::unique_ptr<Command> nextCommand) + : PieceHashCheckIntegrityEntry(requestGroup, std::move(nextCommand)) +{ +} StreamCheckIntegrityEntry::~StreamCheckIntegrityEntry() {} -void StreamCheckIntegrityEntry::onDownloadIncomplete -(std::vector<std::unique_ptr<Command>>& commands, DownloadEngine* e) +void StreamCheckIntegrityEntry::onDownloadIncomplete( + std::vector<std::unique_ptr<Command>>& commands, DownloadEngine* e) { auto& ps = getRequestGroup()->getPieceStorage(); ps->onDownloadIncomplete(); - if(getRequestGroup()->getOption()->getAsBool(PREF_HASH_CHECK_ONLY)) { + if (getRequestGroup()->getOption()->getAsBool(PREF_HASH_CHECK_ONLY)) { return; } - proceedFileAllocation(commands, - make_unique<StreamFileAllocationEntry> - (getRequestGroup(), popNextCommand()), + proceedFileAllocation(commands, make_unique<StreamFileAllocationEntry>( + getRequestGroup(), popNextCommand()), e); } -void StreamCheckIntegrityEntry::onDownloadFinished -(std::vector<std::unique_ptr<Command>>& commands, DownloadEngine* e) -{} +void StreamCheckIntegrityEntry::onDownloadFinished( + std::vector<std::unique_ptr<Command>>& commands, DownloadEngine* e) +{ +} } // namespace aria2 |
