tdf#158337 use std::erase instead of std::remove followed by erase

Change-Id: I36043cd3aa234f98bd0b7cc2868e9094976472b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163123
Reviewed-by: Hossein <hossein@libreoffice.org>
Tested-by: Hossein <hossein@libreoffice.org>
This commit is contained in:
varshneydevansh
2024-02-12 13:28:36 +01:00
committed by Hossein
parent fe4e750d32
commit 2220b3718f
+1 -1
View File
@@ -91,7 +91,7 @@ namespace comphelper
std::scoped_lock aGuard( m_xImpl->aMutex );
// remove all events for this processor
m_xImpl->aEvents.erase(std::remove_if( m_xImpl->aEvents.begin(), m_xImpl->aEvents.end(), EqualProcessor( _xProcessor ) ), m_xImpl->aEvents.end());
std::erase_if( m_xImpl->aEvents, EqualProcessor( _xProcessor ) );
}