Rename to avoid variable hiding. Move temp into vector

This commit is contained in:
Alexander Karatarakis 2018-01-23 15:23:38 -08:00
parent 2f6e549223
commit adc8055a90
1 changed files with 3 additions and 3 deletions

View File

@ -270,10 +270,10 @@ namespace vcpkg::Build
std::vector<PackageSpec> missing_specs;
for (auto&& dep : filter_dependencies(config.scf.core_paragraph->depends, triplet))
{
auto spec = PackageSpec::from_name_and_triplet(dep, triplet).value_or_exit(VCPKG_LINE_INFO);
if (!status_db.is_installed(spec))
auto dep_spec = PackageSpec::from_name_and_triplet(dep, triplet).value_or_exit(VCPKG_LINE_INFO);
if (!status_db.is_installed(dep_spec))
{
missing_specs.push_back(spec);
missing_specs.push_back(std::move(dep_spec));
}
}
// Fail the build if any dependencies were missing