diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 17:30:35 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-09-30 17:30:35 +0900 |
| commit | e34d0e7ffa602d611ec6ec14cf9aa381da41c24e (patch) | |
| tree | 592bb08917923313eba265001383f780ef0f930c /src/Range.h | |
| parent | 492d6d1eeb7df7c848c07487dbdef0306a462332 (diff) | |
Dont' return SharedHandle from HttpHeader::getRange()
Diffstat (limited to 'src/Range.h')
| -rw-r--r-- | src/Range.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/Range.h b/src/Range.h index c4d1ad4d..e7aef928 100644 --- a/src/Range.h +++ b/src/Range.h @@ -41,12 +41,11 @@ namespace aria2 { -class Range { -private: - int64_t startByte_; - int64_t endByte_; - int64_t entityLength_; -public: +struct Range { + int64_t startByte; + int64_t endByte; + int64_t entityLength; + Range(); Range(int64_t startByte, int64_t endByte, int64_t entityLength); @@ -61,21 +60,6 @@ public: bool operator!=(const Range& range) const; - int64_t getStartByte() const - { - return startByte_; - } - - int64_t getEndByte() const - { - return endByte_; - } - - int64_t getEntityLength() const - { - return entityLength_; - } - int64_t getContentLength() const; }; |
