summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-08-29 00:47:33 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-08-29 11:40:29 +0200
commit085269d25a705b656436feac47149296b4b4b35d (patch)
tree3195c0526652ebd9e125507aa17cd15b2acfb368 /sw/qa
parentb0e74b65a86eb965c3e93da2fb77972cc5445f3c (diff)
Replace find_if with proper quantifier algorithms
Change-Id: Icc820a47ac891c358883f9c01224f676c58fdd11 Reviewed-on: https://gerrit.libreoffice.org/59744 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/layout/layout.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index 364e78503b53..8d5a76201563 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -222,10 +222,9 @@ void SwLayoutWriter::testTdf118672()
= linguistic2::LinguServiceManager::create(comphelper::getProcessComponentContext());
uno::Sequence<lang::Locale> aLocales
= xLinguServiceManager->getAvailableLocales("com.sun.star.linguistic2.Hyphenator");
- auto it = std::find_if(aLocales.begin(), aLocales.end(), [](const lang::Locale& rLocale) {
- return rLocale.Language == "en" && rLocale.Country == "US";
- });
- if (it == aLocales.end())
+ if (std::none_of(aLocales.begin(), aLocales.end(), [](const lang::Locale& rLocale) {
+ return rLocale.Language == "en" && rLocale.Country == "US";
+ }))
return;
OUString aLine1("He heard quiet steps behind him. That didn't bode well. Who could be fol*1 2 "