diff options
author | varshneydevansh <varshney.devansh614@gmail.com> | 2024-02-08 21:06:25 +0530 |
---|---|---|
committer | Hossein <hossein@libreoffice.org> | 2024-02-12 13:28:36 +0100 |
commit | 2220b3718fd831e78485cba2a272e9af08907ddd (patch) | |
tree | 29f3ef848ce689ab893871fd7ac8ed5aa244bfe7 /comphelper | |
parent | Resolves tdf#158531 - Connector lines for Keep Ratio setting (diff) | |
download | core-2220b3718fd831e78485cba2a272e9af08907ddd.tar.gz core-2220b3718fd831e78485cba2a272e9af08907ddd.zip |
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>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/asyncnotification.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comphelper/source/misc/asyncnotification.cxx b/comphelper/source/misc/asyncnotification.cxx index cb8a2f251164..72c6414e7281 100644 --- a/comphelper/source/misc/asyncnotification.cxx +++ b/comphelper/source/misc/asyncnotification.cxx @@ -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 ) ); } |