summaryrefslogtreecommitdiff
path: root/chart2/source/controller/accessibility/AccessibleBase.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2020-02-07 21:07:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-08 11:23:19 +0100
commit87030862d4750b456f876dc48310d87ed48848f0 (patch)
treed7ff2dc74aea78648a762e9b5dfe71a192fccf1a /chart2/source/controller/accessibility/AccessibleBase.cxx
parent5088e6d34b0ffba423f8633ee83673a9c1d40036 (diff)
replace some more copy/clear with swap
Change-Id: I6501dd59682d2605e9b9856c2deaa02a873ce641 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88239 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/accessibility/AccessibleBase.cxx')
-rw-r--r--chart2/source/controller/accessibility/AccessibleBase.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx
index 840f578aa17a..91040ee70671 100644
--- a/chart2/source/controller/accessibility/AccessibleBase.cxx
+++ b/chart2/source/controller/accessibility/AccessibleBase.cxx
@@ -374,11 +374,9 @@ void AccessibleBase::KillAllChildren()
{
ClearableMutexGuard aGuard( m_aMutex );
- // make local copy for notification
- ChildListVectorType aLocalChildList( m_aChildList );
-
- // remove all children
- m_aChildList.clear();
+ // make local copy for notification, and remove all children
+ ChildListVectorType aLocalChildList;
+ aLocalChildList.swap( m_aChildList );
m_aChildOIDMap.clear();
aGuard.clear();