c++20: use std::erase(_if) instead of std::remove(_if)+erase (ucb)

Change-Id: I9ce4ae0246f78acd7bfed89f52103c2f5e571c14
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159706
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
Julien Nabet 2023-11-19 21:32:07 +01:00
parent a761272a68
commit 7068754492

View file

@ -507,7 +507,7 @@ TaskManager::deregisterNotifier( const OUString& aUnqPath,Notifier* pNotifier )
if( it == m_aContent.end() )
return;
it->second.notifier.erase(std::remove(it->second.notifier.begin(), it->second.notifier.end(), pNotifier), it->second.notifier.end());
std::erase(it->second.notifier, pNotifier);
if( it->second.notifier.empty() )
m_aContent.erase( it );