summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-18 01:37:58 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-18 01:37:58 +0000
commitfc704485589e2b1841d587e26f74794ac59c00d4 (patch)
tree0d28b10d3a1d0c0d53e6106521a11c29c143a966 /buffer.cpp
parentremoved silly reference @ buffer [] operator (diff)
readded not silly refernce
removed really silly refernce some tests with poll()
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/buffer.cpp b/buffer.cpp
index 342373a..3f6fe7c 100644
--- a/buffer.cpp
+++ b/buffer.cpp
@@ -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[]");
@@ -123,7 +123,7 @@ u_int8_t Buffer::operator[](u_int32_t index)
return buf_[index];
}
-u_int8_t const& Buffer::operator[](u_int32_t index) const
+u_int8_t Buffer::operator[](u_int32_t index) const
{
if(index >= length_)
throw std::out_of_range("buffer::operator[] const");