diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-09 19:25:54 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2019-05-12 16:56:53 (GMT) |
commit | 8691b3cf914c97ed9e3612009707bc5a791ef4f0 (patch) | |
tree | 2c30b040f20098880037cef0d7ddc9db98b4c217 /Source/cmNinjaTargetGenerator.cxx | |
parent | 47da9859e8b5e938fa40b69d117aecef82e090a9 (diff) | |
download | CMake-8691b3cf914c97ed9e3612009707bc5a791ef4f0.zip CMake-8691b3cf914c97ed9e3612009707bc5a791ef4f0.tar.gz CMake-8691b3cf914c97ed9e3612009707bc5a791ef4f0.tar.bz2 |
Ninja: Inline range loop range arguments
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 2324839..ee10891 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1212,8 +1212,7 @@ void cmNinjaTargetGenerator::WriteTargetDependInfo(std::string const& lang) Json::Value& tdi_linked_target_dirs = tdi["linked-target-dirs"] = Json::arrayValue; - std::vector<std::string> linked = this->GetLinkedTargetDirectories(); - for (std::string const& l : linked) { + for (std::string const& l : this->GetLinkedTargetDirectories()) { tdi_linked_target_dirs.append(l); } |