summaryrefslogtreecommitdiff
path: root/Source/cmGeneratorExpression.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-04 13:33:16 +0100
committerStephen Kelly <steveire@gmail.com>2015-01-13 23:00:17 +0100
commit4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34 (patch)
treeb33cf1a4185ae6525c023a2dff210bf3449df197 /Source/cmGeneratorExpression.cxx
parentabb4a6781f96b28e4c30014915f566dee9130db7 (diff)
downloadcmake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.tar.gz
Use the cmDeleteAll algorithm instead of trivial raw loops.
Diffstat (limited to 'Source/cmGeneratorExpression.cxx')
-rw-r--r--Source/cmGeneratorExpression.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/Source/cmGeneratorExpression.cxx b/Source/cmGeneratorExpression.cxx
index 861122cc0e..b2a2386492 100644
--- a/Source/cmGeneratorExpression.cxx
+++ b/Source/cmGeneratorExpression.cxx
@@ -150,15 +150,7 @@ cmCompiledGeneratorExpression::cmCompiledGeneratorExpression(
//----------------------------------------------------------------------------
cmCompiledGeneratorExpression::~cmCompiledGeneratorExpression()
{
- std::vector<cmGeneratorExpressionEvaluator*>::const_iterator it
- = this->Evaluators.begin();
- const std::vector<cmGeneratorExpressionEvaluator*>::const_iterator end
- = this->Evaluators.end();
-
- for ( ; it != end; ++it)
- {
- delete *it;
- }
+ cmDeleteAll(this->Evaluators);
}
//----------------------------------------------------------------------------