diff --git a/image.cpp b/image.cpp index 6937b9fa..61377081 100644 --- a/image.cpp +++ b/image.cpp @@ -301,7 +301,7 @@ buffer::operator[] (size_t idx) /////////////////////////////////////////////////////////////////////////////// template -T* +inline T* buffer::data (void) { return begin (); @@ -310,7 +310,7 @@ buffer::data (void) //----------------------------------------------------------------------------- template -T* +inline T* buffer::begin (void) { return m_data.get (); @@ -319,7 +319,7 @@ buffer::begin (void) //----------------------------------------------------------------------------- template -T* +inline T* buffer::end (void) { return begin () + h * s; @@ -328,7 +328,7 @@ buffer::end (void) //----------------------------------------------------------------------------- template -const T* +inline const T* buffer::data (void) const { return begin (); @@ -337,7 +337,7 @@ buffer::data (void) const //----------------------------------------------------------------------------- template -const T* +inline const T* buffer::begin (void) const { return m_data.get (); @@ -346,7 +346,7 @@ buffer::begin (void) const //----------------------------------------------------------------------------- template -const T* +inline const T* buffer::end (void) const { return begin () + h * s;