summaryrefslogtreecommitdiff
path: root/src/SingleFileAllocationIterator.h
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/SingleFileAllocationIterator.h
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/SingleFileAllocationIterator.h')
-rw-r--r--src/SingleFileAllocationIterator.h20
1 files changed, 6 insertions, 14 deletions
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()