summaryrefslogtreecommitdiff
path: root/Source/cmLocalGhsMultiGenerator.cxx
diff options
context:
space:
mode:
authorAaron Orenstein <aorenste@fb.com>2017-08-18 07:59:52 -0700
committerAaron Orenstein <aorenste@fb.com>2017-08-18 07:59:52 -0700
commit7bc65770171924e550d2937b07b54b83b9fb59ab (patch)
tree939ec4a9f494913f76d82b0d9e219b95c178f426 /Source/cmLocalGhsMultiGenerator.cxx
parent10edb0c7d52b1252517990c2e8b898a804f440d3 (diff)
downloadcmake-7bc65770171924e550d2937b07b54b83b9fb59ab.tar.gz
Performance: Fix a few more unnecessary vector copies missed in af3fd6f
Diffstat (limited to 'Source/cmLocalGhsMultiGenerator.cxx')
-rw-r--r--Source/cmLocalGhsMultiGenerator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGhsMultiGenerator.cxx b/Source/cmLocalGhsMultiGenerator.cxx
index 5f37af5280..ab6774e00a 100644
--- a/Source/cmLocalGhsMultiGenerator.cxx
+++ b/Source/cmLocalGhsMultiGenerator.cxx
@@ -20,9 +20,9 @@ cmLocalGhsMultiGenerator::~cmLocalGhsMultiGenerator()
void cmLocalGhsMultiGenerator::Generate()
{
- std::vector<cmGeneratorTarget*> tgts = this->GetGeneratorTargets();
+ const std::vector<cmGeneratorTarget*>& tgts = this->GetGeneratorTargets();
- for (std::vector<cmGeneratorTarget*>::iterator l = tgts.begin();
+ for (std::vector<cmGeneratorTarget*>::const_iterator l = tgts.begin();
l != tgts.end(); ++l) {
if ((*l)->GetType() == cmStateEnums::INTERFACE_LIBRARY) {
continue;