aboutsummaryrefslogtreecommitdiff
path: root/src/common/Collision/Management/VMapManager2.cpp
diff options
context:
space:
mode:
authorUjp8LfXBJ6wCPR <github@lillecarl.com>2020-02-29 13:20:05 +0100
committerShauren <shauren.trinity@gmail.com>2021-12-22 15:48:01 +0100
commit43aa763d04b524f50c73b55802b11780b75a2f82 (patch)
treed4c0d102ce1dfe8d1ccee852179c93612c341deb /src/common/Collision/Management/VMapManager2.cpp
parent32a91914064cbc22bd85a649bf251b6e6d7fff12 (diff)
Part1: Modernize codebase with Clang-Tidy range based loops (#24164)
(cherry picked from commit fb75a958f02695f166481033203869940d98b537)
Diffstat (limited to 'src/common/Collision/Management/VMapManager2.cpp')
-rw-r--r--src/common/Collision/Management/VMapManager2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/Collision/Management/VMapManager2.cpp b/src/common/Collision/Management/VMapManager2.cpp
index d235b458681..d86b254604a 100644
--- a/src/common/Collision/Management/VMapManager2.cpp
+++ b/src/common/Collision/Management/VMapManager2.cpp
@@ -59,11 +59,11 @@ namespace VMAP
VMapManager2::~VMapManager2()
{
- for (auto i = iInstanceMapTrees.begin(); i != iInstanceMapTrees.end(); ++i)
- delete i->second;
+ for (std::pair<uint32 const, StaticMapTree*>& iInstanceMapTree : iInstanceMapTrees)
+ delete iInstanceMapTree.second;
- for (auto i = iLoadedModelFiles.begin(); i != iLoadedModelFiles.end(); ++i)
- delete i->second;
+ for (std::pair<std::string const, ManagedModel*>& iLoadedModelFile : iLoadedModelFiles)
+ delete iLoadedModelFile.second;
}
InstanceTreeMap::const_iterator VMapManager2::GetMapTree(uint32 mapId) const