summaryrefslogtreecommitdiffstats
path: root/Source/cmOrderDirectories.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/cmOrderDirectories.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/cmOrderDirectories.cxx')
-rw-r--r--Source/cmOrderDirectories.cxx14
1 files changed, 2 insertions, 12 deletions
diff --git a/Source/cmOrderDirectories.cxx b/Source/cmOrderDirectories.cxx
index 116d42f..23f8526 100644
--- a/Source/cmOrderDirectories.cxx
+++ b/Source/cmOrderDirectories.cxx
@@ -291,18 +291,8 @@ cmOrderDirectories::cmOrderDirectories(cmGlobalGenerator* gg,
//----------------------------------------------------------------------------
cmOrderDirectories::~cmOrderDirectories()
{
- for(std::vector<cmOrderDirectoriesConstraint*>::iterator
- i = this->ConstraintEntries.begin();
- i != this->ConstraintEntries.end(); ++i)
- {
- delete *i;
- }
- for(std::vector<cmOrderDirectoriesConstraint*>::iterator
- i = this->ImplicitDirEntries.begin();
- i != this->ImplicitDirEntries.end(); ++i)
- {
- delete *i;
- }
+ cmDeleteAll(this->ConstraintEntries);
+ cmDeleteAll(this->ImplicitDirEntries);
}
//----------------------------------------------------------------------------