summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.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/cmTarget.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/cmTarget.cxx')
-rw-r--r--Source/cmTarget.cxx12
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx
index 8e060c4..8d0271a 100644
--- a/Source/cmTarget.cxx
+++ b/Source/cmTarget.cxx
@@ -539,12 +539,7 @@ void cmTarget::ClearLinkMaps()
this->Internal->LinkInterfaceUsageRequirementsOnlyMap.clear();
this->Internal->LinkClosureMap.clear();
this->Internal->SourceFilesMap.clear();
- for (cmTargetLinkInformationMap::const_iterator it
- = this->LinkInformation.begin();
- it != this->LinkInformation.end(); ++it)
- {
- delete it->second;
- }
+ cmDeleteAll(this->LinkInformation);
this->LinkInformation.clear();
}
@@ -6874,10 +6869,7 @@ cmTargetLinkInformationMap
//----------------------------------------------------------------------------
cmTargetLinkInformationMap::~cmTargetLinkInformationMap()
{
- for(derived::iterator i = this->begin(); i != this->end(); ++i)
- {
- delete i->second;
- }
+ cmDeleteAll(*this);
}
//----------------------------------------------------------------------------