From b1132d6b10cd3791b9529d7031d723fd0e2d8215 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 27 Dec 2015 18:39:47 +0900 Subject: make clang-format using clang-format-3.6 --- src/CheckIntegrityEntry.cc | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) (limited to 'src/CheckIntegrityEntry.cc') diff --git a/src/CheckIntegrityEntry.cc b/src/CheckIntegrityEntry.cc index 3f23a7fa..9a634050 100644 --- a/src/CheckIntegrityEntry.cc +++ b/src/CheckIntegrityEntry.cc @@ -46,58 +46,55 @@ namespace aria2 { CheckIntegrityEntry::CheckIntegrityEntry(RequestGroup* requestGroup, std::unique_ptr nextCommand) - : RequestGroupEntry{requestGroup, std::move(nextCommand)} -{} + : RequestGroupEntry{requestGroup, std::move(nextCommand)} +{ +} CheckIntegrityEntry::~CheckIntegrityEntry() {} -void CheckIntegrityEntry::validateChunk() -{ - validator_->validateChunk(); -} +void CheckIntegrityEntry::validateChunk() { validator_->validateChunk(); } int64_t CheckIntegrityEntry::getTotalLength() { - if(!validator_) { + if (!validator_) { return 0; - } else { + } + else { return validator_->getTotalLength(); } } int64_t CheckIntegrityEntry::getCurrentLength() { - if(!validator_) { + if (!validator_) { return 0; - } else { + } + else { return validator_->getCurrentOffset(); } } -bool CheckIntegrityEntry::finished() -{ - return validator_->finished(); -} +bool CheckIntegrityEntry::finished() { return validator_->finished(); } void CheckIntegrityEntry::cutTrailingGarbage() { getRequestGroup()->getPieceStorage()->getDiskAdaptor()->cutTrailingGarbage(); } -void CheckIntegrityEntry::proceedFileAllocation -(std::vector>& commands, - std::unique_ptr entry, - DownloadEngine* e) +void CheckIntegrityEntry::proceedFileAllocation( + std::vector>& commands, + std::unique_ptr entry, DownloadEngine* e) { - if(getRequestGroup()->needsFileAllocation()) { + if (getRequestGroup()->needsFileAllocation()) { e->getFileAllocationMan()->pushEntry(std::move(entry)); - } else { + } + else { entry->prepareForNextAction(commands, e); } } -void CheckIntegrityEntry::setValidator -(std::unique_ptr validator) +void CheckIntegrityEntry::setValidator( + std::unique_ptr validator) { validator_ = std::move(validator); } -- cgit