mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-14 21:41:06 -05:00
cmInstallScriptHandler: Reserve and emplace vector entries
This commit is contained in:
@@ -72,8 +72,9 @@ int cmInstallScriptHandler::install(unsigned int j)
|
||||
cm::uv_loop_ptr loop;
|
||||
loop.init();
|
||||
std::vector<InstallScript> scripts;
|
||||
scripts.reserve(this->commands.size());
|
||||
for (auto const& cmd : this->commands) {
|
||||
scripts.push_back(InstallScript(cmd));
|
||||
scripts.emplace_back(cmd);
|
||||
}
|
||||
std::size_t working = 0;
|
||||
std::size_t installed = 0;
|
||||
|
||||
Reference in New Issue
Block a user