summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-11-19 21:30:40 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-11-20 07:40:15 +0100
commit042fb18fbcb98ee7e9b3982d987421e43b99cbff (patch)
tree6b02dd36e871c6c75cd3fb26bcd025d21a0a45c2
parent39aff36a842ae4df59c283dbba7f2ebfcf5d66fd (diff)
c++20: use std::erase(_if) instead of std::remove(_if)+erase (toolkit)
Change-Id: Ied5fc25f959e938fdd80532375486c167c370e35 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159705 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r--toolkit/source/awt/vclxtabpagecontainer.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolkit/source/awt/vclxtabpagecontainer.cxx b/toolkit/source/awt/vclxtabpagecontainer.cxx
index 55a27ba2af27..afd3d843b7ef 100644
--- a/toolkit/source/awt/vclxtabpagecontainer.cxx
+++ b/toolkit/source/awt/vclxtabpagecontainer.cxx
@@ -199,7 +199,7 @@ void SAL_CALL VCLXTabPageContainer::elementRemoved( const css::container::Contai
Reference< awt::XControl > xControl(xTabPage,UNO_QUERY );
Reference< awt::tab::XTabPageModel > xP( xControl->getModel(), UNO_QUERY );
pTabCtrl->RemovePage(xP->getTabPageID());
- m_aTabPages.erase(::std::remove(m_aTabPages.begin(),m_aTabPages.end(),xTabPage));
+ std::erase(m_aTabPages,xTabPage);
}
}
void SAL_CALL VCLXTabPageContainer::elementReplaced( const css::container::ContainerEvent& /*Event*/ )