mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-15 05:51:07 -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;
|
cm::uv_loop_ptr loop;
|
||||||
loop.init();
|
loop.init();
|
||||||
std::vector<InstallScript> scripts;
|
std::vector<InstallScript> scripts;
|
||||||
|
scripts.reserve(this->commands.size());
|
||||||
for (auto const& cmd : this->commands) {
|
for (auto const& cmd : this->commands) {
|
||||||
scripts.push_back(InstallScript(cmd));
|
scripts.emplace_back(cmd);
|
||||||
}
|
}
|
||||||
std::size_t working = 0;
|
std::size_t working = 0;
|
||||||
std::size_t installed = 0;
|
std::size_t installed = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user