summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-09-08 09:50:18 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-08 14:46:08 +0200
commit97b6fd8e9ec4c655a5b73cbb4f64be06e7057242 (patch)
treec10735e6b9cd736a3f297283327ed746db0f5d52 /forms
parentb678dee6a856e3c0bd4e969db76f6a19970e5343 (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')
-rw-r--r--forms/source/component/ListBox.cxx5
-rw-r--r--forms/source/richtext/richtextengine.cxx4
2 files changed, 4 insertions, 5 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(),
diff --git a/forms/source/richtext/richtextengine.cxx b/forms/source/richtext/richtextengine.cxx
index 63a055a3a301..481c80ba4e91 100644
--- a/forms/source/richtext/richtextengine.cxx
+++ b/forms/source/richtext/richtextengine.cxx
@@ -115,10 +115,10 @@ namespace frm
void RichTextEngine::revokeEngineStatusListener( IEngineStatusListener const * _pListener )
{
- ::std::vector< IEngineStatusListener* >::iterator aPos = ::std::find_if(
+ ::std::vector< IEngineStatusListener* >::iterator aPos = ::std::find(
m_aStatusListeners.begin(),
m_aStatusListeners.end(),
- [_pListener](IEngineStatusListener * p) { return p == _pListener; }
+ _pListener
);
OSL_ENSURE( aPos != m_aStatusListeners.end(), "RichTextEngine::revokeEngineStatusListener: listener not registered!" );
if ( aPos != m_aStatusListeners.end() )