diff options
author | Zi Ree <81702435+zi-ree@users.noreply.github.com> | 2024-07-12 18:17:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-12 19:17:30 +0300 |
commit | 934021f3244d5a090d5171676762f637a90e6d4e (patch) | |
tree | 5392f30ab66020b0b053872b7ab63f0ce1adb68f /indra/newview/llviewertexturelist.h | |
parent | af93e581929f79b9a21ead6fca0a3c58c498b0d5 (diff) |
Make image_list_t iterator const (#2010)
gcc complains about this iterator not being const
Diffstat (limited to 'indra/newview/llviewertexturelist.h')
-rw-r--r-- | indra/newview/llviewertexturelist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llviewertexturelist.h b/indra/newview/llviewertexturelist.h index 813fda1647..075f6ae915 100644 --- a/indra/newview/llviewertexturelist.h +++ b/indra/newview/llviewertexturelist.h @@ -229,8 +229,8 @@ public: 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<LLViewerFetchedTexture> > uuid_map_t; |