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>
This commit is contained in:
@@ -199,7 +199,7 @@ void SAL_CALL VCLXTabPageContainer::elementRemoved( const css::container::Contai
|
|||||||
Reference< awt::XControl > xControl(xTabPage,UNO_QUERY );
|
Reference< awt::XControl > xControl(xTabPage,UNO_QUERY );
|
||||||
Reference< awt::tab::XTabPageModel > xP( xControl->getModel(), UNO_QUERY );
|
Reference< awt::tab::XTabPageModel > xP( xControl->getModel(), UNO_QUERY );
|
||||||
pTabCtrl->RemovePage(xP->getTabPageID());
|
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*/ )
|
void SAL_CALL VCLXTabPageContainer::elementReplaced( const css::container::ContainerEvent& /*Event*/ )
|
||||||
|
Reference in New Issue
Block a user