diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-04 12:33:16 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-13 22:00:17 (GMT) |
commit | 4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34 (patch) | |
tree | b33cf1a4185ae6525c023a2dff210bf3449df197 /Source/CPack/cmCPackGeneratorFactory.cxx | |
parent | abb4a6781f96b28e4c30014915f566dee9130db7 (diff) | |
download | CMake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.zip CMake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.tar.gz CMake-4a6e795b0c5cdafbc78f12389ec20d6bc4f9ca34.tar.bz2 |
Use the cmDeleteAll algorithm instead of trivial raw loops.
Diffstat (limited to 'Source/CPack/cmCPackGeneratorFactory.cxx')
-rw-r--r-- | Source/CPack/cmCPackGeneratorFactory.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/CPack/cmCPackGeneratorFactory.cxx b/Source/CPack/cmCPackGeneratorFactory.cxx index 94ca536..a07c29a 100644 --- a/Source/CPack/cmCPackGeneratorFactory.cxx +++ b/Source/CPack/cmCPackGeneratorFactory.cxx @@ -158,11 +158,7 @@ cmCPackGeneratorFactory::cmCPackGeneratorFactory() //---------------------------------------------------------------------- cmCPackGeneratorFactory::~cmCPackGeneratorFactory() { - std::vector<cmCPackGenerator*>::iterator it; - for ( it = this->Generators.begin(); it != this->Generators.end(); ++ it ) - { - delete *it; - } + cmDeleteAll(this->Generators); } //---------------------------------------------------------------------- |