diff options
author | Rose <gfunni234@gmail.com> | 2022-12-10 17:48:09 (GMT) |
---|---|---|
committer | Rose <gfunni234@gmail.com> | 2022-12-10 17:48:09 (GMT) |
commit | 6d15754814e2b7cc53402267f2b1ce6f61e631e8 (patch) | |
tree | dffaf0d92410862c6b92f900b5826b8ea038b765 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 192903b244b292070cbd96d914811c6f6bacae08 (diff) | |
download | CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.zip CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.tar.gz CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.tar.bz2 |
Make vector operations more efficient
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index cfe4c7c..c24b1e3 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -2098,6 +2098,7 @@ void cmGlobalNinjaGenerator::WriteTargetClean(std::ostream& os) } std::vector<std::string> byproducts; + byproducts.reserve(this->CrossConfigs.size()); for (auto const& config : this->CrossConfigs) { byproducts.push_back( this->BuildAlias(GetByproductsForCleanTargetName(), config)); |