summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestCoverageHandler.cxx
diff options
context:
space:
mode:
authorRose <gfunni234@gmail.com>2022-12-10 17:48:09 (GMT)
committerRose <gfunni234@gmail.com>2022-12-10 17:48:09 (GMT)
commit6d15754814e2b7cc53402267f2b1ce6f61e631e8 (patch)
treedffaf0d92410862c6b92f900b5826b8ea038b765 /Source/CTest/cmCTestCoverageHandler.cxx
parent192903b244b292070cbd96d914811c6f6bacae08 (diff)
downloadCMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.zip
CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.tar.gz
CMake-6d15754814e2b7cc53402267f2b1ce6f61e631e8.tar.bz2
Make vector operations more efficient
Diffstat (limited to 'Source/CTest/cmCTestCoverageHandler.cxx')
-rw-r--r--Source/CTest/cmCTestCoverageHandler.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestCoverageHandler.cxx b/Source/CTest/cmCTestCoverageHandler.cxx
index f7c6a9c..5c48cbf 100644
--- a/Source/CTest/cmCTestCoverageHandler.cxx
+++ b/Source/CTest/cmCTestCoverageHandler.cxx
@@ -73,6 +73,7 @@ public:
bool StartProcess()
{
std::vector<const char*> args;
+ args.reserve(this->CommandLineStrings.size());
for (std::string const& cl : this->CommandLineStrings) {
args.push_back(cl.c_str());
}