summaryrefslogtreecommitdiffstats
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:13:46 (GMT)
commitd1c1e95331a30bd967e95a28dad959128a359609 (patch)
tree8d672fec5cc8949f9f59a60f35920676f65e5763
parentfceeaff949c0721077455ea28620a8aed92d8d6a (diff)
downloadCMake-d1c1e95331a30bd967e95a28dad959128a359609.zip
CMake-d1c1e95331a30bd967e95a28dad959128a359609.tar.gz
CMake-d1c1e95331a30bd967e95a28dad959128a359609.tar.bz2
cmCPackInnoSetupGenerator: Reserve space to reduce allocations
-rw-r--r--Source/CPack/cmCPackInnoSetupGenerator.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackInnoSetupGenerator.cxx b/Source/CPack/cmCPackInnoSetupGenerator.cxx
index b8bf070..429a281 100644
--- a/Source/CPack/cmCPackInnoSetupGenerator.cxx
+++ b/Source/CPack/cmCPackInnoSetupGenerator.cxx
@@ -633,6 +633,7 @@ bool cmCPackInnoSetupGenerator::ProcessComponents()
} else if (!component->InstallationTypes.empty()) {
std::vector<std::string> installationTypes;
+ installationTypes.reserve(component->InstallationTypes.size());
for (cmCPackInstallationType* j : component->InstallationTypes) {
installationTypes.push_back(j->Name);
}