diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-30 12:36:27 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-01-30 21:52:43 -0800 |
| commit | 884cd176b05a76e7fbba924685a0d71c3dea0f9b (patch) | |
| tree | 3bee9768900cb2594aeb236ba8f12fbfdb08caaf /toolsrc/src/vcpkg_Dependencies.cpp | |
| parent | 661776fe29344c431731e5ae464da4942b38bf79 (diff) | |
| download | vcpkg-884cd176b05a76e7fbba924685a0d71c3dea0f9b.tar.gz vcpkg-884cd176b05a76e7fbba924685a0d71c3dea0f9b.zip | |
Renames and formatting
Diffstat (limited to 'toolsrc/src/vcpkg_Dependencies.cpp')
| -rw-r--r-- | toolsrc/src/vcpkg_Dependencies.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/toolsrc/src/vcpkg_Dependencies.cpp b/toolsrc/src/vcpkg_Dependencies.cpp index 5de782e73..b0047a772 100644 --- a/toolsrc/src/vcpkg_Dependencies.cpp +++ b/toolsrc/src/vcpkg_Dependencies.cpp @@ -66,7 +66,7 @@ namespace vcpkg::Dependencies const std::vector<package_spec> pkgs = graph.find_topological_sort(); for (const package_spec& pkg : pkgs) { - ret.push_back({ pkg, std::move(was_examined[pkg]) }); + ret.push_back({pkg, std::move(was_examined[pkg])}); } return ret; } @@ -93,7 +93,7 @@ namespace vcpkg::Dependencies auto it = status_db.find(spec); if (it == status_db.end() || (*it)->state == install_state_t::not_installed) { - was_examined.emplace(spec, remove_plan_action{ remove_plan_type::NOT_INSTALLED, nullptr}); + was_examined.emplace(spec, remove_plan_action{remove_plan_type::NOT_INSTALLED, nullptr}); continue; } @@ -114,8 +114,8 @@ namespace vcpkg::Dependencies examine_stack.push_back(an_installed_package.get()->package.spec); } - const remove_plan_type type = specs_as_set.find(spec) != specs_as_set.end() ? remove_plan_type::REMOVE_USER_REQUESTED: remove_plan_type::REMOVE_AUTO_SELECTED; - was_examined.emplace(spec, remove_plan_action{ type, std::make_unique<StatusParagraph>(std::move(**it))}); + const remove_plan_type type = specs_as_set.find(spec) != specs_as_set.end() ? remove_plan_type::REMOVE_USER_REQUESTED : remove_plan_type::REMOVE_AUTO_SELECTED; + was_examined.emplace(spec, remove_plan_action{type, std::make_unique<StatusParagraph>(std::move(**it))}); } std::vector<package_spec_with_remove_plan> ret; @@ -123,7 +123,7 @@ namespace vcpkg::Dependencies const std::vector<package_spec> pkgs = graph.find_topological_sort(); for (const package_spec& pkg : pkgs) { - ret.push_back({ pkg, std::move(was_examined[pkg]) }); + ret.push_back({pkg, std::move(was_examined[pkg])}); } return ret; } |
