diff options
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/inc/standard/vclxaccessiblelist.hxx | 5 | ||||
-rw-r--r-- | accessibility/source/standard/vclxaccessiblelist.cxx | 11 |
2 files changed, 2 insertions, 14 deletions
diff --git a/accessibility/inc/standard/vclxaccessiblelist.hxx b/accessibility/inc/standard/vclxaccessiblelist.hxx index 2399d5d69603..3d3533dcee1a 100644 --- a/accessibility/inc/standard/vclxaccessiblelist.hxx +++ b/accessibility/inc/standard/vclxaccessiblelist.hxx @@ -176,11 +176,6 @@ private: */ css::uno::Reference< css::accessibility::XAccessible > m_xParent; - - /** dispose all items aand clears the container - */ - void clearItems(); - void UpdateEntryRange_Impl(); protected: void UpdateSelection_Impl(sal_Int32 nPos = 0); diff --git a/accessibility/source/standard/vclxaccessiblelist.cxx b/accessibility/source/standard/vclxaccessiblelist.cxx index 0da281044449..e7014650bf36 100644 --- a/accessibility/source/standard/vclxaccessiblelist.cxx +++ b/accessibility/source/standard/vclxaccessiblelist.cxx @@ -113,19 +113,12 @@ void SAL_CALL VCLXAccessibleList::disposing() VCLXAccessibleComponent::disposing(); // Dispose all items in the list. - clearItems(); + m_aAccessibleChildren.clear(); m_pListBoxHelper.reset(); } -void VCLXAccessibleList::clearItems() -{ - // Clear the list itself and delete all the rest. - ListItems().swap(m_aAccessibleChildren); // clear and minimize -} - - void VCLXAccessibleList::FillAccessibleStateSet (utl::AccessibleStateSetHelper& rStateSet) { SolarMutexGuard aSolarGuard; @@ -512,7 +505,7 @@ Reference<XAccessible> VCLXAccessibleList::CreateChild (sal_Int32 nPos) void VCLXAccessibleList::HandleChangedItemList() { - clearItems(); + m_aAccessibleChildren.clear(); NotifyAccessibleEvent ( AccessibleEventId::INVALIDATE_ALL_CHILDREN, Any(), Any()); |