summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestCVS.cxx
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2023-10-16 23:43:13 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-23 15:18:32 (GMT)
commit9ca6dfc280b086fcf139f631f294281e234f5752 (patch)
treea5c60e2d93b8c4ad6a56eb28a0aeabb8bca404cf /Source/CTest/cmCTestCVS.cxx
parentaaeb2e0aa868af3cfe927e1ff8c79faa8bdcf28f (diff)
downloadCMake-9ca6dfc280b086fcf139f631f294281e234f5752.zip
CMake-9ca6dfc280b086fcf139f631f294281e234f5752.tar.gz
CMake-9ca6dfc280b086fcf139f631f294281e234f5752.tar.bz2
Source: Reduce vector entry allocations and copies
Prefer `emplace_back` over `push_back`.
Diffstat (limited to 'Source/CTest/cmCTestCVS.cxx')
-rw-r--r--Source/CTest/cmCTestCVS.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestCVS.cxx b/Source/CTest/cmCTestCVS.cxx
index ef95b25..badd43e 100644
--- a/Source/CTest/cmCTestCVS.cxx
+++ b/Source/CTest/cmCTestCVS.cxx
@@ -92,8 +92,8 @@ bool cmCTestCVS::UpdateImpl()
// Run "cvs update" to update the work tree.
std::vector<std::string> cvs_update;
cvs_update.push_back(this->CommandLineTool);
- cvs_update.push_back("-z3");
- cvs_update.push_back("update");
+ cvs_update.emplace_back("-z3");
+ cvs_update.emplace_back("update");
cm::append(cvs_update, args);
UpdateParser out(this, "up-out> ");