diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-11-19 21:29:12 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-11-20 12:06:28 +0100 |
commit | 950bee9154c9854364c72a3b48ddbcffff137803 (patch) | |
tree | f5f0efae1aa7be262f1a4b8bc320cb9d67c086f5 /sw/source/ui/dbui | |
parent | a7de97bc7b83790907bd6fdfb7a319e2467aba1d (diff) |
c++20: use std::erase(_if) instead of std::remove(_if)+erase (sw)
Change-Id: I67c231441b56f05da001beab5b893bc6a6a6a392
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159704
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw/source/ui/dbui')
-rw-r--r-- | sw/source/ui/dbui/mmaddressblockpage.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/dbui/mmaddressblockpage.cxx b/sw/source/ui/dbui/mmaddressblockpage.cxx index 48d4e3dce117..73811cbf3e0e 100644 --- a/sw/source/ui/dbui/mmaddressblockpage.cxx +++ b/sw/source/ui/dbui/mmaddressblockpage.cxx @@ -1523,7 +1523,7 @@ namespace virtual void SAL_CALL removeDropTargetListener(const css::uno::Reference<css::datatransfer::dnd::XDropTargetListener>& xListener) override { - m_aListeners.erase(std::remove(m_aListeners.begin(), m_aListeners.end(), xListener), m_aListeners.end()); + std::erase(m_aListeners, xListener); } virtual sal_Bool SAL_CALL isActive() override |