summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svtools/source/config/miscopt.cxx2
-rw-r--r--svtools/source/dialogs/insdlg.cxx4
2 files changed, 2 insertions, 4 deletions
diff --git a/svtools/source/config/miscopt.cxx b/svtools/source/config/miscopt.cxx
index 625086eee24c..ca8537b1c38c 100644
--- a/svtools/source/config/miscopt.cxx
+++ b/svtools/source/config/miscopt.cxx
@@ -228,7 +228,7 @@ void SvtMiscOptions_Impl::AddListenerLink( const Link<LinkParamNone*,void>& rLin
void SvtMiscOptions_Impl::RemoveListenerLink( const Link<LinkParamNone*,void>& rLink )
{
- aList.erase(std::remove(aList.begin(), aList.end(), rLink), aList.end());
+ std::erase(aList, rLink);
}
void SvtMiscOptions_Impl::CallListeners()
diff --git a/svtools/source/dialogs/insdlg.cxx b/svtools/source/dialogs/insdlg.cxx
index 7fe1728f4194..50fad4a75dcd 100644
--- a/svtools/source/dialogs/insdlg.cxx
+++ b/svtools/source/dialogs/insdlg.cxx
@@ -97,9 +97,7 @@ const SvObjectServer * SvObjectServerList::Get( const SvGlobalName & rName ) con
void SvObjectServerList::Remove( const SvGlobalName & rName )
{
- aObjectServerList.erase(std::remove_if(aObjectServerList.begin(), aObjectServerList.end(),
- [rName](const SvObjectServer& rServer) { return rServer.GetClassName() == rName; }),
- aObjectServerList.end());
+ std::erase_if(aObjectServerList, [rName](const SvObjectServer& rServer) { return rServer.GetClassName() == rName; });
}