mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
cmCPackInnoSetupGenerator: Reserve space to reduce allocations
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user