summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZi Ree <81702435+zi-ree@users.noreply.github.com>2024-07-12 18:17:30 +0200
committerGitHub <noreply@github.com>2024-07-12 19:17:30 +0300
commit934021f3244d5a090d5171676762f637a90e6d4e (patch)
tree5392f30ab66020b0b053872b7ab63f0ce1adb68f
parentaf93e581929f79b9a21ead6fca0a3c58c498b0d5 (diff)
Make image_list_t iterator const (#2010)
gcc complains about this iterator not being const
-rw-r--r--indra/newview/llviewertexturelist.h4
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;