summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-01-15 18:31:50 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-15 18:32:00 (GMT)
commitf11b8342a0cae42b42e47428e34577f266fd314c (patch)
treeae97522de60007aa532924a689fb06182b2fb55d /Source/cmGlobalNinjaGenerator.cxx
parente125d50ddf7fc1a0df77fb0de7ca97db00277ee2 (diff)
parent328f586be7744350fbb5162dbb39eba255e68a6e (diff)
downloadCMake-f11b8342a0cae42b42e47428e34577f266fd314c.zip
CMake-f11b8342a0cae42b42e47428e34577f266fd314c.tar.gz
CMake-f11b8342a0cae42b42e47428e34577f266fd314c.tar.bz2
Merge topic 'modernize-memory-management'
328f586be7 cmAlgorithms.h: remove obsolete helpers f466cea3c9 cmMakefile: modernize memory management Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4215
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index 922beb7..0048ba4 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -1336,8 +1336,7 @@ void cmGlobalNinjaGenerator::WriteUnknownExplicitDependencies(std::ostream& os)
knownDependencies.insert(this->ConvertToNinjaPath(j));
}
}
- for (cmGeneratorExpressionEvaluationFile* li :
- lg->GetMakefile()->GetEvaluationFiles()) {
+ for (const auto& li : lg->GetMakefile()->GetEvaluationFiles()) {
// get all the files created by generator expressions and convert them
// to ninja paths
for (std::string const& evaluationFile : li->GetFiles()) {