summaryrefslogtreecommitdiff
path: root/src/SingleFileAllocationIterator.h
diff options
context:
space:
mode:
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()