diff --git a/indra/newview/llviewertexturelist.h b/indra/newview/llviewertexturelist.h index 813fda16478..075f6ae9158 100644 --- a/indra/newview/llviewertexturelist.h +++ b/indra/newview/llviewertexturelist.h @@ -229,8 +229,8 @@ class LLViewerTextureList bool mForceResetTextureStats; // to make "for (auto& imagep : gTextureList)" work - const image_list_t::iterator begin() const { return mImageList.begin(); } - const image_list_t::iterator end() const { return mImageList.end(); } + const image_list_t::const_iterator begin() const { return mImageList.cbegin(); } + const image_list_t::const_iterator end() const { return mImageList.cend(); } private: typedef std::map< LLTextureKey, LLPointer > uuid_map_t;