summaryrefslogtreecommitdiffstats
path: root/forms
diff options
context:
space:
mode:
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() )