Core/Misc: Fix appleclang 12 warnings

This commit is contained in:
Shauren
2021-10-01 11:18:29 +02:00
parent 7e96b2d733
commit 3bf6698116
9 changed files with 19 additions and 18 deletions

View File

@@ -784,7 +784,7 @@ void PoolMgr::LoadFromDB()
// Now check for circular reference
// All pool_ids are in pool_template
for (auto const it : mPoolTemplate)
for (auto const& it : mPoolTemplate)
{
std::set<uint32> checkedPools;
for (SearchMap::iterator poolItr = mPoolSearchMap.find(it.first); poolItr != mPoolSearchMap.end(); poolItr = mPoolSearchMap.find(poolItr->second))