summaryrefslogtreecommitdiff
path: root/src/StreamCheckIntegrityEntry.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/StreamCheckIntegrityEntry.cc
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/StreamCheckIntegrityEntry.cc')
-rw-r--r--src/StreamCheckIntegrityEntry.cc27
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