diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2023-09-05 22:28:39 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2023-09-06 07:50:52 +0200 |
commit | 7aa758b9f4c5153673cdbedd558289df8b0cbd14 (patch) | |
tree | a721298d12999d30562592d48156a7a69c7507bf /comphelper | |
parent | e151ea63b0fb1d099410dab141953621a2d67328 (diff) |
a11y: Just use std::map::clear
... instead of creating an empty map and calling
`std::map::swap`.
Change-Id: Ieb53cc1a75d1e52452987ad234562d175f762ad0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156582
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/accessiblewrapper.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/accessiblewrapper.cxx b/comphelper/source/misc/accessiblewrapper.cxx index af5cd50a378b..4c8d98977cd3 100644 --- a/comphelper/source/misc/accessiblewrapper.cxx +++ b/comphelper/source/misc/accessiblewrapper.cxx @@ -79,7 +79,7 @@ namespace comphelper xComp->removeEventListener( this ); } // clear the map - AccessibleMap().swap(m_aChildrenMap); + m_aChildrenMap.clear(); } @@ -147,7 +147,7 @@ namespace comphelper } // clear our children - AccessibleMap().swap(m_aChildrenMap); + m_aChildrenMap.clear(); } |