summaryrefslogtreecommitdiff
path: root/vcl/source/app/IconThemeSelector.cxx
diff options
context:
space:
mode:
authorTakeshi Abe <tabe@fixedpoint.jp>2015-05-01 23:07:32 +0900
committerCaolán McNamara <caolanm@redhat.com>2015-05-07 14:05:16 +0000
commit6a26624d8ba9d37481e75f5c952dff9c6dd86fb6 (patch)
treeb4dba17480c2ec71068c0f5a8ebdaddca23a7f82 /vcl/source/app/IconThemeSelector.cxx
parent5a7c1bc635c7e0377bb743d91b0cf385397b7337 (diff)
vcl: simplify code by using std::any_of/std::none_of
Change-Id: I37c4fd80780738b823c7928f22deaff0ea1c6bff Reviewed-on: https://gerrit.libreoffice.org/15585 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app/IconThemeSelector.cxx')
-rw-r--r--vcl/source/app/IconThemeSelector.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/source/app/IconThemeSelector.cxx b/vcl/source/app/IconThemeSelector.cxx
index b9beee30dc10..f7971dd17e1a 100644
--- a/vcl/source/app/IconThemeSelector.cxx
+++ b/vcl/source/app/IconThemeSelector.cxx
@@ -40,9 +40,8 @@ namespace {
bool icon_theme_is_in_installed_themes(const OUString& theme,
const std::vector<IconThemeInfo>& installedThemes)
{
- return std::find_if(installedThemes.begin(), installedThemes.end(),
- SameTheme(theme)
- ) != installedThemes.end();
+ return std::any_of(installedThemes.begin(), installedThemes.end(),
+ SameTheme(theme));
}
} // end anonymous namespace