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:
parent
a761272a68
commit
7068754492
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue