From 84d6e3ed7e22fe791335b43795f8f6f45a5f36c6 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Sat, 19 Mar 2022 16:39:13 -0400 Subject: [PATCH] Small opt --- indra/newview/llviewernetwork.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/indra/newview/llviewernetwork.cpp b/indra/newview/llviewernetwork.cpp index 875420a519c..7a574b66dce 100644 --- a/indra/newview/llviewernetwork.cpp +++ b/indra/newview/llviewernetwork.cpp @@ -638,14 +638,12 @@ void LLGridManager::saveGridList() std::map<std::string, std::string> LLGridManager::getKnownGrids() const { std::map<std::string, std::string> result; - for(LLSD::map_const_iterator grid_iter = mGridList.beginMap(); - grid_iter != mGridList.endMap(); - ++grid_iter) + for(const auto& grid_pair : mGridList.map()) { // skip temp grids. since this is just for "grid label mappings for UI purposes" - if (grid_iter->second.has(GRID_TEMPORARY) && grid_iter->second[GRID_TEMPORARY].asBoolean()) + if (grid_pair.second.has(GRID_TEMPORARY) && grid_pair.second[GRID_TEMPORARY].asBoolean()) continue; - result[grid_iter->first] = grid_iter->second[GRID_LABEL_VALUE].asString(); + result[grid_pair.first] = grid_pair.second[GRID_LABEL_VALUE].asString(); } return result; -- GitLab