diff options
author | Aaron Orenstein <aorenste@fb.com> | 2017-08-18 14:59:52 (GMT) |
---|---|---|
committer | Aaron Orenstein <aorenste@fb.com> | 2017-08-18 14:59:52 (GMT) |
commit | 7bc65770171924e550d2937b07b54b83b9fb59ab (patch) | |
tree | 939ec4a9f494913f76d82b0d9e219b95c178f426 /Source/cmServerProtocol.cxx | |
parent | 10edb0c7d52b1252517990c2e8b898a804f440d3 (diff) | |
download | CMake-7bc65770171924e550d2937b07b54b83b9fb59ab.zip CMake-7bc65770171924e550d2937b07b54b83b9fb59ab.tar.gz CMake-7bc65770171924e550d2937b07b54b83b9fb59ab.tar.bz2 |
Performance: Fix a few more unnecessary vector copies missed in af3fd6f
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r-- | Source/cmServerProtocol.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index baaf11a..2063c82 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -903,7 +903,7 @@ static Json::Value DumpTargetsList( std::vector<cmGeneratorTarget*> targetList; for (const auto& lgIt : generators) { - auto list = lgIt->GetGeneratorTargets(); + const auto& list = lgIt->GetGeneratorTargets(); targetList.insert(targetList.end(), list.begin(), list.end()); } std::sort(targetList.begin(), targetList.end()); |