diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-09-08 09:50:18 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-08 14:46:08 +0200 |
commit | 97b6fd8e9ec4c655a5b73cbb4f64be06e7057242 (patch) | |
tree | c10735e6b9cd736a3f297283327ed746db0f5d52 /compilerplugins | |
parent | b678dee6a856e3c0bd4e969db76f6a19970e5343 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'compilerplugins')
-rw-r--r-- | compilerplugins/clang/implicitboolconversion.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
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, |