mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
Move line below temp struct
This commit is contained in:
parent
88e0246c77
commit
4749d7d67d
@ -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::unordered_set<PackageSpec> specs_as_set(specs.cbegin(), specs.cend());
|
||||
|
||||
struct InstallAdjacencyProvider final : Graphs::AdjacencyProvider<PackageSpec, AnyParagraph>
|
||||
{
|
||||
const VcpkgPaths& paths;
|
||||
@ -151,6 +149,7 @@ namespace vcpkg::Dependencies
|
||||
|
||||
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;
|
||||
for (const AnyParagraph& pkg : toposort)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user