Move line below temp struct

This commit is contained in:
Alexander Karatarakis 2017-04-12 16:24:49 -07:00
parent 88e0246c77
commit 4749d7d67d

View File

@ -114,8 +114,6 @@ namespace vcpkg::Dependencies
std::vector<PackageSpecWithInstallPlan> create_install_plan(const VcpkgPaths& paths, const std::vector<PackageSpec>& specs, const StatusParagraphs& status_db) std::vector<PackageSpecWithInstallPlan> create_install_plan(const VcpkgPaths& paths, const std::vector<PackageSpec>& specs, const StatusParagraphs& status_db)
{ {
std::unordered_set<PackageSpec> specs_as_set(specs.cbegin(), specs.cend());
struct InstallAdjacencyProvider final : Graphs::AdjacencyProvider<PackageSpec, AnyParagraph> struct InstallAdjacencyProvider final : Graphs::AdjacencyProvider<PackageSpec, AnyParagraph>
{ {
const VcpkgPaths& paths; const VcpkgPaths& paths;
@ -151,6 +149,7 @@ namespace vcpkg::Dependencies
auto toposort = Graphs::topological_sort(specs, InstallAdjacencyProvider{ paths, status_db }); auto toposort = Graphs::topological_sort(specs, InstallAdjacencyProvider{ paths, status_db });
std::unordered_set<PackageSpec> specs_as_set(specs.cbegin(), specs.cend());
std::vector<PackageSpecWithInstallPlan> ret; std::vector<PackageSpecWithInstallPlan> ret;
for (const AnyParagraph& pkg : toposort) for (const AnyParagraph& pkg : toposort)
{ {