summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2019-05-09 19:25:54 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2019-05-12 16:56:53 (GMT)
commit8691b3cf914c97ed9e3612009707bc5a791ef4f0 (patch)
tree2c30b040f20098880037cef0d7ddc9db98b4c217 /Source/cmLocalNinjaGenerator.cxx
parent47da9859e8b5e938fa40b69d117aecef82e090a9 (diff)
downloadCMake-8691b3cf914c97ed9e3612009707bc5a791ef4f0.zip
CMake-8691b3cf914c97ed9e3612009707bc5a791ef4f0.tar.gz
CMake-8691b3cf914c97ed9e3612009707bc5a791ef4f0.tar.bz2
Ninja: Inline range loop range arguments
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index f4e3ed8..515651a 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -79,8 +79,7 @@ void cmLocalNinjaGenerator::Generate()
}
}
- const std::vector<cmGeneratorTarget*>& targets = this->GetGeneratorTargets();
- for (cmGeneratorTarget* target : targets) {
+ for (cmGeneratorTarget* target : this->GetGeneratorTargets()) {
if (target->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
continue;
}
@@ -283,8 +282,7 @@ void cmLocalNinjaGenerator::AppendTargetDepends(cmGeneratorTarget* target,
void cmLocalNinjaGenerator::AppendCustomCommandDeps(
cmCustomCommandGenerator const& ccg, cmNinjaDeps& ninjaDeps)
{
- const std::vector<std::string>& deps = ccg.GetDepends();
- for (std::string const& i : deps) {
+ for (std::string const& i : ccg.GetDepends()) {
std::string dep;
if (this->GetRealDependency(i, this->GetConfigName(), dep)) {
ninjaDeps.push_back(