diff options
Diffstat (limited to 'sw/source/uibase/uno/unodispatch.cxx')
-rw-r--r-- | sw/source/uibase/uno/unodispatch.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/uibase/uno/unodispatch.cxx b/sw/source/uibase/uno/unodispatch.cxx index bb9af96d48f6..a67afc31c19d 100644 --- a/sw/source/uibase/uno/unodispatch.cxx +++ b/sw/source/uibase/uno/unodispatch.cxx @@ -300,10 +300,9 @@ void SwXDispatch::addStatusListener( void SwXDispatch::removeStatusListener( const uno::Reference< frame::XStatusListener >& xControl, const util::URL& ) { - m_aStatusListenerVector.erase( - std::remove_if(m_aStatusListenerVector.begin(), m_aStatusListenerVector.end(), - [&](const StatusStruct_Impl& status) { return status.xListener.get() == xControl.get(); }), - m_aStatusListenerVector.end()); + std::erase_if( + m_aStatusListenerVector, + [&](const StatusStruct_Impl& status) { return status.xListener.get() == xControl.get(); }); if(m_aStatusListenerVector.empty() && m_pView) { uno::Reference<view::XSelectionSupplier> xSupplier = m_pView->GetUNOObject(); |