diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-03 16:21:46 -0700 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-04-04 16:44:44 -0700 |
| commit | 1d8099fd8cdad4ebbd8297a474bc7c7c0768660e (patch) | |
| tree | c6880606cf6711c7cf65da7449d548f366eb94b5 /toolsrc/src | |
| parent | 6ac7eb7bfb290735e37d2497aee9a1e417e9f403 (diff) | |
| download | vcpkg-1d8099fd8cdad4ebbd8297a474bc7c7c0768660e.tar.gz vcpkg-1d8099fd8cdad4ebbd8297a474bc7c7c0768660e.zip | |
request_type -> RequestType
Diffstat (limited to 'toolsrc/src')
| -rw-r--r-- | toolsrc/src/commands_remove.cpp | 10 | ||||
| -rw-r--r-- | toolsrc/src/vcpkg_Dependencies.cpp | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/toolsrc/src/commands_remove.cpp b/toolsrc/src/commands_remove.cpp index 2ea535e99..fb4387e06 100644 --- a/toolsrc/src/commands_remove.cpp +++ b/toolsrc/src/commands_remove.cpp @@ -10,8 +10,8 @@ namespace vcpkg::Commands::Remove { using Dependencies::package_spec_with_remove_plan; using Dependencies::remove_plan_type; - using Dependencies::request_type; - using Update::outdated_package; + using Dependencies::RequestType; + using Update::OutdatedPackage; static void delete_directory(const fs::path& directory) { @@ -147,12 +147,12 @@ namespace vcpkg::Commands::Remove System::println("The following packages will be removed:\n%s", Strings::join("\n", remove, [](const package_spec_with_remove_plan* p) { - if (p->plan.request_type == Dependencies::request_type::AUTO_SELECTED) + if (p->plan.request_type == Dependencies::RequestType::AUTO_SELECTED) { return " * " + p->spec.toString(); } - if (p->plan.request_type == Dependencies::request_type::USER_REQUESTED) + if (p->plan.request_type == Dependencies::RequestType::USER_REQUESTED) { return " " + p->spec.toString(); } @@ -205,7 +205,7 @@ namespace vcpkg::Commands::Remove const bool has_non_user_requested_packages = std::find_if(remove_plan.cbegin(), remove_plan.cend(), [](const package_spec_with_remove_plan& package)-> bool { - return package.plan.request_type != request_type::USER_REQUESTED; + return package.plan.request_type != RequestType::USER_REQUESTED; }) != remove_plan.cend(); if (has_non_user_requested_packages) diff --git a/toolsrc/src/vcpkg_Dependencies.cpp b/toolsrc/src/vcpkg_Dependencies.cpp index f2098d1b8..a1ef606ba 100644 --- a/toolsrc/src/vcpkg_Dependencies.cpp +++ b/toolsrc/src/vcpkg_Dependencies.cpp @@ -22,11 +22,11 @@ namespace vcpkg::Dependencies { } - remove_plan_action::remove_plan_action() : plan_type(remove_plan_type::UNKNOWN), request_type(request_type::UNKNOWN) + remove_plan_action::remove_plan_action() : plan_type(remove_plan_type::UNKNOWN), request_type(RequestType::UNKNOWN) { } - remove_plan_action::remove_plan_action(const remove_plan_type& plan_type, const Dependencies::request_type& request_type) : plan_type(plan_type), request_type(request_type) + remove_plan_action::remove_plan_action(const remove_plan_type& plan_type, const Dependencies::RequestType& request_type) : plan_type(plan_type), request_type(request_type) { } @@ -124,7 +124,7 @@ namespace vcpkg::Dependencies const StatusParagraphs::const_iterator it = status_db.find(spec); if (it == status_db.end() || (*it)->state == InstallState::NOT_INSTALLED) { - was_examined.emplace(spec, remove_plan_action(remove_plan_type::NOT_INSTALLED, request_type::USER_REQUESTED)); + was_examined.emplace(spec, remove_plan_action(remove_plan_type::NOT_INSTALLED, RequestType::USER_REQUESTED)); continue; } @@ -145,7 +145,7 @@ namespace vcpkg::Dependencies examine_stack.push_back(an_installed_package.get()->package.spec); } - const request_type request_type = specs_as_set.find(spec) != specs_as_set.end() ? request_type::USER_REQUESTED : request_type::AUTO_SELECTED; + const RequestType request_type = specs_as_set.find(spec) != specs_as_set.end() ? RequestType::USER_REQUESTED : RequestType::AUTO_SELECTED; was_examined.emplace(spec, remove_plan_action(remove_plan_type::REMOVE, request_type)); } |
