From fc704485589e2b1841d587e26f74794ac59c00d4 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 18 Jun 2007 01:37:58 +0000 Subject: readded not silly refernce removed really silly refernce some tests with poll() --- buffer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'buffer.cpp') 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"); -- cgit v1.2.3