summaryrefslogtreecommitdiffstats
path: root/Source/cmExportSetMap.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-04 14:06:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-01-17 15:22:58 (GMT)
commit681d965df18fa55a9eaa615515015ac088ea0805 (patch)
tree70029e9bef9aedbae521adbb4daf9f31c8136ea8 /Source/cmExportSetMap.cxx
parent4dc0c488f94a5f0c7ae04fd15b46a92c20fb03fa (diff)
downloadCMake-681d965df18fa55a9eaa615515015ac088ea0805.zip
CMake-681d965df18fa55a9eaa615515015ac088ea0805.tar.gz
CMake-681d965df18fa55a9eaa615515015ac088ea0805.tar.bz2
Use the cmDeleteAll algorithm for types derived from std::map.
Diffstat (limited to 'Source/cmExportSetMap.cxx')
-rw-r--r--Source/cmExportSetMap.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmExportSetMap.cxx b/Source/cmExportSetMap.cxx
index 5174118..14c4458 100644
--- a/Source/cmExportSetMap.cxx
+++ b/Source/cmExportSetMap.cxx
@@ -25,12 +25,7 @@ cmExportSet* cmExportSetMap::operator[](const std::string &name)
void cmExportSetMap::clear()
{
- for(std::map<std::string, cmExportSet*>::iterator it = this->begin();
- it != this->end();
- ++ it)
- {
- delete it->second;
- }
+ cmDeleteAll(*this);
this->derived::clear();
}