From 392b3a50ead4092ea3688385b492e5455c5f6ced Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Thu, 13 Apr 2017 18:02:04 -0700 Subject: Use Util::find_if/not() --- toolsrc/src/commands_remove.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toolsrc/src/commands_remove.cpp') diff --git a/toolsrc/src/commands_remove.cpp b/toolsrc/src/commands_remove.cpp index 52c01f525..bb8297d02 100644 --- a/toolsrc/src/commands_remove.cpp +++ b/toolsrc/src/commands_remove.cpp @@ -177,7 +177,7 @@ namespace vcpkg::Commands::Remove print_plan(remove_plan); - const bool has_non_user_requested_packages = std::find_if(remove_plan.cbegin(), remove_plan.cend(), [](const RemovePlanAction& package)-> bool + const bool has_non_user_requested_packages = Util::find_if(remove_plan, [](const RemovePlanAction& package)-> bool { return package.request_type != RequestType::USER_REQUESTED; }) != remove_plan.cend(); -- cgit v1.2.3