diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/TruncFileAllocationIterator.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/TruncFileAllocationIterator.cc')
| -rw-r--r-- | src/TruncFileAllocationIterator.cc | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/TruncFileAllocationIterator.cc b/src/TruncFileAllocationIterator.cc index 212ae651..611ebe43 100644 --- a/src/TruncFileAllocationIterator.cc +++ b/src/TruncFileAllocationIterator.cc @@ -37,12 +37,12 @@ namespace aria2 { -TruncFileAllocationIterator::TruncFileAllocationIterator -(BinaryStream* stream, int64_t offset, int64_t totalLength) - : stream_(stream), - offset_(offset), - totalLength_(totalLength) -{} +TruncFileAllocationIterator::TruncFileAllocationIterator(BinaryStream* stream, + int64_t offset, + int64_t totalLength) + : stream_(stream), offset_(offset), totalLength_(totalLength) +{ +} void TruncFileAllocationIterator::allocateChunk() { @@ -50,19 +50,10 @@ void TruncFileAllocationIterator::allocateChunk() offset_ = totalLength_; } -bool TruncFileAllocationIterator::finished() -{ - return offset_ == totalLength_; -} +bool TruncFileAllocationIterator::finished() { return offset_ == totalLength_; } -int64_t TruncFileAllocationIterator::getCurrentLength() -{ - return offset_; -} +int64_t TruncFileAllocationIterator::getCurrentLength() { return offset_; } -int64_t TruncFileAllocationIterator::getTotalLength() -{ - return totalLength_; -} +int64_t TruncFileAllocationIterator::getTotalLength() { return totalLength_; } } // namespace aria2 |
