diff options
author | Brad King <brad.king@kitware.com> | 2022-12-14 14:01:23 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-12-14 14:01:41 (GMT) |
commit | 15dcb41f202c2d2123ce47f7afb06e9adc735101 (patch) | |
tree | 97072c4ecb27f4e81dbff8d5bab824a936b4b789 /Source/cmUVProcessChain.cxx | |
parent | 7ca90d04fc3c476a90ff679ecf6c87ee5c449f72 (diff) | |
parent | 6d15754814e2b7cc53402267f2b1ce6f61e631e8 (diff) | |
download | CMake-15dcb41f202c2d2123ce47f7afb06e9adc735101.zip CMake-15dcb41f202c2d2123ce47f7afb06e9adc735101.tar.gz CMake-15dcb41f202c2d2123ce47f7afb06e9adc735101.tar.bz2 |
Merge topic 'vectorfix'
6d15754814 Make vector operations more efficient
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Alex <leha-bot@yandex.ru>
Merge-request: !8010
Diffstat (limited to 'Source/cmUVProcessChain.cxx')
-rw-r--r-- | Source/cmUVProcessChain.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmUVProcessChain.cxx b/Source/cmUVProcessChain.cxx index 6040fd8..3faf2f6 100644 --- a/Source/cmUVProcessChain.cxx +++ b/Source/cmUVProcessChain.cxx @@ -241,6 +241,7 @@ bool cmUVProcessChain::InternalData::AddCommand( options.file = config.Arguments[0].c_str(); std::vector<const char*> arguments; + arguments.reserve(config.Arguments.size()); for (auto const& arg : config.Arguments) { arguments.push_back(arg.c_str()); } |