summaryrefslogtreecommitdiff
path: root/src/Range.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-30 17:30:35 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2012-09-30 17:30:35 +0900
commite34d0e7ffa602d611ec6ec14cf9aa381da41c24e (patch)
tree592bb08917923313eba265001383f780ef0f930c /src/Range.h
parent492d6d1eeb7df7c848c07487dbdef0306a462332 (diff)
Dont' return SharedHandle from HttpHeader::getRange()
Diffstat (limited to 'src/Range.h')
-rw-r--r--src/Range.h26
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;
};