diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-11-19 21:33:18 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-11-20 07:40:29 +0100 |
commit | 2ea548e394a504a2277a17f333f862540d48b817 (patch) | |
tree | f4026dc1e7ca040be18337a75c0c235631812844 /unotools/source/misc | |
parent | 042fb18fbcb98ee7e9b3982d987421e43b99cbff (diff) |
c++20: use std::erase(_if) instead of std::remove(_if)+erase (unotools)
Change-Id: Iebc949486322b55f60e83b27739acc1c16d2a25e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159707
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'unotools/source/misc')
-rw-r--r-- | unotools/source/misc/desktopterminationobserver.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unotools/source/misc/desktopterminationobserver.cxx b/unotools/source/misc/desktopterminationobserver.cxx index 138125a4fc10..2eeb44a92dda 100644 --- a/unotools/source/misc/desktopterminationobserver.cxx +++ b/unotools/source/misc/desktopterminationobserver.cxx @@ -180,7 +180,7 @@ namespace utl { ::osl::MutexGuard aGuard( ::osl::Mutex::getGlobalMutex() ); Listeners& rListeners = getListenerAdminData().aListeners; - rListeners.erase(std::remove(rListeners.begin(), rListeners.end(), _pListener), rListeners.end()); + std::erase(rListeners, _pListener); } } // namespace utl |