summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-04 12:33:16 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-13 22:00:17 (GMT)
commit4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34 (patch)
treeb33cf1a4185ae6525c023a2dff210bf3449df197 /Source/cmGlobalGenerator.cxx
parentabb4a6781f96b28e4c30014915f566dee9130db7 (diff)
downloadCMake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.zip
CMake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.tar.gz
CMake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.tar.bz2
Use the cmDeleteAll algorithm instead of trivial raw loops.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx20
1 files changed, 3 insertions, 17 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index aee96dd..d17710e 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1517,27 +1517,13 @@ void cmGlobalGenerator::ClearGeneratorMembers()
}
this->GeneratorTargets.clear();
- for(std::vector<cmGeneratorExpressionEvaluationFile*>::const_iterator
- li = this->EvaluationFiles.begin();
- li != this->EvaluationFiles.end();
- ++li)
- {
- delete *li;
- }
+ cmDeleteAll(this->EvaluationFiles);
this->EvaluationFiles.clear();
- for(std::map<std::string, cmExportBuildFileGenerator*>::iterator
- i = this->BuildExportSets.begin();
- i != this->BuildExportSets.end(); ++i)
- {
- delete i->second;
- }
+ cmDeleteAll(this->BuildExportSets);
this->BuildExportSets.clear();
- for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
- {
- delete this->LocalGenerators[i];
- }
+ cmDeleteAll(this->LocalGenerators);
this->LocalGenerators.clear();
this->ExportSets.clear();