diff options
author | Christian Pointner <equinox@anytun.org> | 2007-06-17 22:32:35 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2007-06-17 22:32:35 +0000 |
commit | b2e23eac27427f254d60506089fd0f9a4de2214e (patch) | |
tree | 2908efa469884f7f4b502b2ad0b3fd2469df618a | |
parent | added [] - operator to Buffer (diff) |
removed silly reference @ buffer [] operator
-rw-r--r-- | buffer.cpp | 2 | ||||
-rw-r--r-- | buffer.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -115,7 +115,7 @@ u_int8_t* Buffer::getBuf() return buf_; } -u_int8_t& Buffer::operator[](u_int32_t index) +u_int8_t Buffer::operator[](u_int32_t index) { if(index >= length_) throw std::out_of_range("buffer::operator[]"); @@ -46,7 +46,7 @@ public: u_int32_t resize(u_int32_t new_length); u_int32_t getLength() const; u_int8_t* getBuf(); - u_int8_t& operator[](u_int32_t index); + u_int8_t operator[](u_int32_t index); u_int8_t const& operator[](u_int32_t index) const; protected: |