From 085269d25a705b656436feac47149296b4b4b35d Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Wed, 29 Aug 2018 00:47:33 +0300 Subject: Replace find_if with proper quantifier algorithms Change-Id: Icc820a47ac891c358883f9c01224f676c58fdd11 Reviewed-on: https://gerrit.libreoffice.org/59744 Tested-by: Jenkins Reviewed-by: Noel Grandin --- unoidl/source/unoidl-check.cxx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'unoidl') diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx index f0343231913e..41ad76143cd1 100644 --- a/unoidl/source/unoidl-check.cxx +++ b/unoidl/source/unoidl-check.cxx @@ -728,11 +728,10 @@ void checkMap( std::exit(EXIT_FAILURE); } for (auto & i: ent2A->getDirectOptionalBaseServices()) { - if (std::find_if( + if (std::none_of( ent2B->getDirectOptionalBaseServices().begin(), ent2B->getDirectOptionalBaseServices().end(), - EqualsAnnotation(i.name)) - == ent2B->getDirectOptionalBaseServices().end()) + EqualsAnnotation(i.name))) { std::cerr << "accumulation-based service " << name @@ -789,12 +788,11 @@ void checkMap( std::exit(EXIT_FAILURE); } for (auto & i: ent2A->getDirectOptionalBaseInterfaces()) { - if (std::find_if( + if (std::none_of( (ent2B->getDirectOptionalBaseInterfaces() .begin()), ent2B->getDirectOptionalBaseInterfaces().end(), - EqualsAnnotation(i.name)) - == ent2B->getDirectOptionalBaseInterfaces().end()) + EqualsAnnotation(i.name))) { std::cerr << "accumulation-based service " << name -- cgit