diff options
Diffstat (limited to 'chart2/source/controller/accessibility')
-rw-r--r-- | chart2/source/controller/accessibility/AccessibleBase.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/chart2/source/controller/accessibility/AccessibleBase.cxx b/chart2/source/controller/accessibility/AccessibleBase.cxx index 840f578aa17a8..91040ee706715 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(); |