diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-11-19 21:48:56 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-11-20 07:40:57 +0100 |
commit | 63d676e7557f2b63d8f2df6573e3b4af5bb46cb0 (patch) | |
tree | 60a3a80fae29acf2cd56c34ee5ff9b7a856dcf44 /vcl/jsdialog | |
parent | 75f6a86ad924661f19c504380d96659e6b7d8afe (diff) |
c++20: use std::erase(_if) instead of std::remove(_if)+erase (vcl)
Change-Id: Ie9bb9ce20f27162bcb7d7d25dcad99107675e2be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159709
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl/jsdialog')
-rw-r--r-- | vcl/jsdialog/jsdialogbuilder.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/jsdialog/jsdialogbuilder.cxx b/vcl/jsdialog/jsdialogbuilder.cxx index def963b0510e..151928f873f6 100644 --- a/vcl/jsdialog/jsdialogbuilder.cxx +++ b/vcl/jsdialog/jsdialogbuilder.cxx @@ -436,8 +436,7 @@ void JSDropTarget::removeDropTargetListener( { std::unique_lock aGuard(m_aMutex); - m_aListeners.erase(std::remove(m_aListeners.begin(), m_aListeners.end(), xListener), - m_aListeners.end()); + std::erase(m_aListeners, xListener); } sal_Bool JSDropTarget::isActive() { return false; } |