diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-01-12 15:58:54 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-01-14 10:03:07 (GMT) |
commit | f466cea3c9edffb1f524b64c514f8b7ef3913988 (patch) | |
tree | d6623a9efbd040dd7e6a091117fd642bc003b81c /Source/cmInstallSubdirectoryGenerator.cxx | |
parent | 2d5e9f3d8cf44fafcd9a3b75ebce3d6fe383fe4e (diff) | |
download | CMake-f466cea3c9edffb1f524b64c514f8b7ef3913988.zip CMake-f466cea3c9edffb1f524b64c514f8b7ef3913988.tar.gz CMake-f466cea3c9edffb1f524b64c514f8b7ef3913988.tar.bz2 |
cmMakefile: modernize memory management
Diffstat (limited to 'Source/cmInstallSubdirectoryGenerator.cxx')
-rw-r--r-- | Source/cmInstallSubdirectoryGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmInstallSubdirectoryGenerator.cxx b/Source/cmInstallSubdirectoryGenerator.cxx index 8a0fefa..5405b7c 100644 --- a/Source/cmInstallSubdirectoryGenerator.cxx +++ b/Source/cmInstallSubdirectoryGenerator.cxx @@ -2,6 +2,7 @@ file Copyright.txt or https://cmake.org/licensing for details. */ #include "cmInstallSubdirectoryGenerator.h" +#include <memory> #include <sstream> #include <vector> @@ -24,7 +25,7 @@ cmInstallSubdirectoryGenerator::~cmInstallSubdirectoryGenerator() = default; bool cmInstallSubdirectoryGenerator::HaveInstall() { - for (auto generator : this->Makefile->GetInstallGenerators()) { + for (const auto& generator : this->Makefile->GetInstallGenerators()) { if (generator->HaveInstall()) { return true; } |