diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-04 14:06:37 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-17 15:22:58 (GMT) |
commit | 681d965df18fa55a9eaa615515015ac088ea0805 (patch) | |
tree | 70029e9bef9aedbae521adbb4daf9f31c8136ea8 /Source/cmGlobalGenerator.cxx | |
parent | 4dc0c488f94a5f0c7ae04fd15b46a92c20fb03fa (diff) | |
download | CMake-681d965df18fa55a9eaa615515015ac088ea0805.zip CMake-681d965df18fa55a9eaa615515015ac088ea0805.tar.gz CMake-681d965df18fa55a9eaa615515015ac088ea0805.tar.bz2 |
Use the cmDeleteAll algorithm for types derived from std::map.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index d17710e..f282bad 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -1510,11 +1510,7 @@ void cmGlobalGenerator::CreateGeneratorTargets() //---------------------------------------------------------------------------- void cmGlobalGenerator::ClearGeneratorMembers() { - for(cmGeneratorTargetsType::iterator i = this->GeneratorTargets.begin(); - i != this->GeneratorTargets.end(); ++i) - { - delete i->second; - } + cmDeleteAll(this->GeneratorTargets); this->GeneratorTargets.clear(); cmDeleteAll(this->EvaluationFiles); |