summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2017-08-17 20:38:03 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-17 20:38:24 (GMT)
commit999192b0f7a1ccf9eb68a8338bfcbb3c13368b99 (patch)
tree030511d764e73f655ef9cd81e8f7874fd069e3ba /Source/cmLocalNinjaGenerator.cxx
parentd3760354a522fa91dcef88aa768fa22654636686 (diff)
parentaf3fd6f22f317d4209ff679e4f7c8dd8d2d0f89f (diff)
downloadCMake-999192b0f7a1ccf9eb68a8338bfcbb3c13368b99.zip
CMake-999192b0f7a1ccf9eb68a8338bfcbb3c13368b99.tar.gz
CMake-999192b0f7a1ccf9eb68a8338bfcbb3c13368b99.tar.bz2
Merge topic 'perf-targetIterAndLookup-cmLocalGenerator'
af3fd6f2 Performance: Add an index to Change cmLocalGenerator::GeneratorTargets. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1136
Diffstat (limited to 'Source/cmLocalNinjaGenerator.cxx')
-rw-r--r--Source/cmLocalNinjaGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalNinjaGenerator.cxx b/Source/cmLocalNinjaGenerator.cxx
index 266710c..9fa3ca5 100644
--- a/Source/cmLocalNinjaGenerator.cxx
+++ b/Source/cmLocalNinjaGenerator.cxx
@@ -79,8 +79,8 @@ void cmLocalNinjaGenerator::Generate()
}
}
- std::vector<cmGeneratorTarget*> targets = this->GetGeneratorTargets();
- for (std::vector<cmGeneratorTarget*>::iterator t = targets.begin();
+ const std::vector<cmGeneratorTarget*>& targets = this->GetGeneratorTargets();
+ for (std::vector<cmGeneratorTarget*>::const_iterator t = targets.begin();
t != targets.end(); ++t) {
if ((*t)->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
continue;