From 042fb18fbcb98ee7e9b3982d987421e43b99cbff Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sun, 19 Nov 2023 21:30:40 +0100 Subject: [PATCH] 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 --- toolkit/source/awt/vclxtabpagecontainer.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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*/ )