summaryrefslogtreecommitdiff
path: root/buffer.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2007-06-17 22:32:35 +0000
committerChristian Pointner <equinox@anytun.org>2007-06-17 22:32:35 +0000
commitb2e23eac27427f254d60506089fd0f9a4de2214e (patch)
tree2908efa469884f7f4b502b2ad0b3fd2469df618a /buffer.cpp
parentadded [] - operator to Buffer (diff)
removed silly reference @ buffer [] operator
Diffstat (limited to 'buffer.cpp')
-rw-r--r--buffer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/buffer.cpp b/buffer.cpp
index b1029a6..342373a 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[]");