summaryrefslogtreecommitdiff
path: root/sd/source/console/PresenterAccessibility.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-11-18 22:33:50 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-11-19 09:48:48 +0100
commit0d84174d8c205a58fa1a64d44ae5629c40a9cf85 (patch)
tree91ccffe50e7468920b097b30adb12b40168b2183 /sd/source/console/PresenterAccessibility.cxx
parent7618c791a39e74b0f8291ff28f65df78cfa20301 (diff)
c++20: use std::erase(_if) instead of std::remove(_if)+erase (part 9)
Change-Id: I61e53faf68e7e0fab2052122993197c7994441ff Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159640 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sd/source/console/PresenterAccessibility.cxx')
-rw-r--r--sd/source/console/PresenterAccessibility.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/sd/source/console/PresenterAccessibility.cxx b/sd/source/console/PresenterAccessibility.cxx
index 4f2fa33f3866..e7ac0b95d52b 100644
--- a/sd/source/console/PresenterAccessibility.cxx
+++ b/sd/source/console/PresenterAccessibility.cxx
@@ -970,11 +970,7 @@ void SAL_CALL PresenterAccessible::AccessibleObject::removeAccessibleEventListen
{
const osl::MutexGuard aGuard(m_aMutex);
- auto const it(std::remove(maListeners.begin(), maListeners.end(), rxListener));
- if (it != maListeners.end())
- {
- maListeners.erase(it);
- }
+ std::erase(maListeners, rxListener);
}
}