Kaydet (Commit) c365ebc7 authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Noel Grandin

accessibility: simplify and inline VCLXAccessibleList::clearItems

Change-Id: Ie32311850a0dc013e71e0456d7e6bfd8611e6e95
Reviewed-on: https://gerrit.libreoffice.org/37567Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c9275062
......@@ -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);
......
......@@ -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());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment