From 297248c83f47b533ef39c36f5206be63ccdd9c82 Mon Sep 17 00:00:00 2001 From: KUDr Date: Fri, 29 Jun 2007 22:39:50 +0000 Subject: (svn r10390) -Fix: constness --- src/misc/array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/misc/array.hpp b/src/misc/array.hpp index 7f8e42329..220082da5 100644 --- a/src/misc/array.hpp +++ b/src/misc/array.hpp @@ -64,8 +64,8 @@ public: /** indexed access (const) */ FORCEINLINE const Titem& operator [] (int idx) const { - CSubArray& sa = m_a[idx / Tblock_size]; - Titem& item = sa [idx % Tblock_size]; + const CSubArray& sa = m_a[idx / Tblock_size]; + const Titem& item = sa [idx % Tblock_size]; return item; } }; -- cgit v1.2.3-70-g09d2