diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-09-08 09:50:18 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-08 14:46:08 +0200 |
commit | 97b6fd8e9ec4c655a5b73cbb4f64be06e7057242 (patch) | |
tree | c10735e6b9cd736a3f297283327ed746db0f5d52 /forms/source/component/ListBox.cxx | |
parent | b678dee6a856e3c0bd4e969db76f6a19970e5343 (diff) |
Replace find_if with proper quantifier algorithms
Missed in 085269d25a705b656436feac47149296b4b4b35d
Change-Id: I3cfab57232908b48d090658e0fbc948d62b3fc6f
Reviewed-on: https://gerrit.libreoffice.org/60180
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.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 6f36ab12bf17..f294615cdd97 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -463,9 +463,8 @@ namespace frm // #i27024# const Any* pSelectSequenceValue = nullptr; - const OUString* pSelectedItemsPos = ::std::find_if( - _rPropertyNames.begin(), _rPropertyNames.end(), - [](OUString const & s) { return s == PROPERTY_SELECT_SEQ; } + const OUString* pSelectedItemsPos = std::find( + _rPropertyNames.begin(), _rPropertyNames.end(), PROPERTY_SELECT_SEQ ); auto aStringItemListExists = std::any_of( _rPropertyNames.begin(), _rPropertyNames.end(), |