comphelper/source/misc/accessiblewrapper.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7aa758b9f4c5153673cdbedd558289df8b0cbd14
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Tue Sep 5 22:28:39 2023 +0200
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Wed Sep 6 07:50:52 2023 +0200

    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.wegh...@posteo.de>

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();
     }
 
 

Reply via email to