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/SingleFileAllocationIterator.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'src/SingleFileAllocationIterator.h') diff --git a/src/SingleFileAllocationIterator.h b/src/SingleFileAllocationIterator.h index 201baaf5..42f2d3ed 100644 --- a/src/SingleFileAllocationIterator.h +++ b/src/SingleFileAllocationIterator.h @@ -41,8 +41,7 @@ namespace aria2 { class BinaryStream; -class SingleFileAllocationIterator:public FileAllocationIterator -{ +class SingleFileAllocationIterator : public FileAllocationIterator { private: BinaryStream* stream_; @@ -51,11 +50,10 @@ private: int64_t totalLength_; unsigned char* buffer_; + public: - SingleFileAllocationIterator - (BinaryStream* stream, - int64_t offset, - int64_t totalLength); + SingleFileAllocationIterator(BinaryStream* stream, int64_t offset, + int64_t totalLength); virtual ~SingleFileAllocationIterator(); @@ -63,15 +61,9 @@ public: virtual bool finished() CXX11_OVERRIDE; - virtual int64_t getCurrentLength() CXX11_OVERRIDE - { - return offset_; - } + virtual int64_t getCurrentLength() CXX11_OVERRIDE { return offset_; } - virtual int64_t getTotalLength() CXX11_OVERRIDE - { - return totalLength_; - } + virtual int64_t getTotalLength() CXX11_OVERRIDE { return totalLength_; } /** * Must be called only once, before calling allocateChunk() -- cgit