Skip to content
Snippets Groups Projects
Commit 84d6e3ed authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Small opt

parent 436a19c0
No related branches found
No related tags found
No related merge requests found
...@@ -638,14 +638,12 @@ void LLGridManager::saveGridList() ...@@ -638,14 +638,12 @@ void LLGridManager::saveGridList()
std::map<std::string, std::string> LLGridManager::getKnownGrids() const std::map<std::string, std::string> LLGridManager::getKnownGrids() const
{ {
std::map<std::string, std::string> result; std::map<std::string, std::string> result;
for(LLSD::map_const_iterator grid_iter = mGridList.beginMap(); for(const auto& grid_pair : mGridList.map())
grid_iter != mGridList.endMap();
++grid_iter)
{ {
// skip temp grids. since this is just for "grid label mappings for UI purposes" // 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; 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; return result;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment