summaryrefslogtreecommitdiff
path: root/forms/source/component/ListBox.cxx
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 /forms/source/component/ListBox.cxx
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 'forms/source/component/ListBox.cxx')
-rw-r--r--forms/source/component/ListBox.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx
index 3a55e313dcf1..6f36ab12bf17 100644
--- a/forms/source/component/ListBox.cxx
+++ b/forms/source/component/ListBox.cxx
@@ -467,11 +467,11 @@ namespace frm
_rPropertyNames.begin(), _rPropertyNames.end(),
[](OUString const & s) { return s == PROPERTY_SELECT_SEQ; }
);
- const OUString* pStringItemListPos = ::std::find_if(
+ auto aStringItemListExists = std::any_of(
_rPropertyNames.begin(), _rPropertyNames.end(),
[](OUString const & s) { return s == PROPERTY_STRINGITEMLIST; }
);
- if ( ( pSelectedItemsPos != _rPropertyNames.end() ) && ( pStringItemListPos != _rPropertyNames.end() ) )
+ if ( ( pSelectedItemsPos != _rPropertyNames.end() ) && aStringItemListExists )
{
// both properties are present
// -> remember the value for the select sequence