mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-28 04:09:35 +03: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