diff options
Diffstat (limited to 'unoidl')
-rw-r--r-- | unoidl/source/unoidl-check.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
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 |