cmCPackInnoSetupGenerator: Reserve space to reduce allocations

This commit is contained in:
Rose
2023-10-16 19:43:13 -04:00
committed by Brad King
parent fceeaff949
commit d1c1e95331

View File

@@ -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);
}