diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-04 13:33:16 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-13 23:00:17 +0100 |
commit | 4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34 (patch) | |
tree | b33cf1a4185ae6525c023a2dff210bf3449df197 /Source/cmInstalledFile.h | |
parent | abb4a6781f96b28e4c30014915f566dee9130db7 (diff) | |
download | cmake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.tar.gz |
Use the cmDeleteAll algorithm instead of trivial raw loops.
Diffstat (limited to 'Source/cmInstalledFile.h')
-rw-r--r-- | Source/cmInstalledFile.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmInstalledFile.h b/Source/cmInstalledFile.h index 7134a4e323..503f92c109 100644 --- a/Source/cmInstalledFile.h +++ b/Source/cmInstalledFile.h @@ -38,11 +38,7 @@ public: ~Property() { - for(ExpressionVectorType::iterator i = ValueExpressions.begin(); - i != ValueExpressions.end(); ++i) - { - delete *i; - } + cmDeleteAll(this->ValueExpressions); } ExpressionVectorType ValueExpressions; |