From 97b6fd8e9ec4c655a5b73cbb4f64be06e7057242 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sat, 8 Sep 2018 09:50:18 +0300 Subject: Replace find_if with proper quantifier algorithms Missed in 085269d25a705b656436feac47149296b4b4b35d Change-Id: I3cfab57232908b48d090658e0fbc948d62b3fc6f Reviewed-on: https://gerrit.libreoffice.org/60180 Tested-by: Jenkins Reviewed-by: Noel Grandin --- compilerplugins/clang/implicitboolconversion.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'compilerplugins') diff --git a/compilerplugins/clang/implicitboolconversion.cxx b/compilerplugins/clang/implicitboolconversion.cxx index 4afc4ad0b92a..cf40338a4ce3 100644 --- a/compilerplugins/clang/implicitboolconversion.cxx +++ b/compilerplugins/clang/implicitboolconversion.cxx @@ -880,10 +880,9 @@ bool ImplicitBoolConversion::VisitImplicitCastExpr( && !calls.empty()) { CallExpr const * call = calls.top(); - if (std::find_if( + if (std::any_of( call->arg_begin(), call->arg_end(), - [expr](Expr const * e) { return expr == e->IgnoreParens(); }) - != call->arg_end()) + [expr](Expr const * e) { return expr == e->IgnoreParens(); })) { report( DiagnosticsEngine::Warning, -- cgit