summaryrefslogtreecommitdiffstats
path: root/compilerplugins
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-09-08 09:50:18 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-08 14:46:08 +0200
commit97b6fd8e9ec4c655a5b73cbb4f64be06e7057242 (patch)
treec10735e6b9cd736a3f297283327ed746db0f5d52 /compilerplugins
parentcppcheck: variableScope in basic (diff)
downloadcore-97b6fd8e9ec4c655a5b73cbb4f64be06e7057242.tar.gz
core-97b6fd8e9ec4c655a5b73cbb4f64be06e7057242.zip
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.cxx5
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,