sw a11y: Drop OAccessible::getAccessibleContext call
The method a reference to self, so just use SwAccessibleDocumentBase::mpParent directly instead. Change-Id: Ib0b457434ad67c1beb318c93830f6d406e4f93e7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210616 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
@@ -162,15 +162,14 @@ sal_Int64 SAL_CALL SwAccessibleDocumentBase::getAccessibleIndexInParent()
|
||||
{
|
||||
SolarMutexGuard aGuard;
|
||||
|
||||
uno::Reference<XAccessibleContext> xAcc(mpParent->getAccessibleContext());
|
||||
uno::Reference < XAccessible > xThis( this );
|
||||
sal_Int64 nCount = xAcc->getAccessibleChildCount();
|
||||
sal_Int64 nCount = mpParent->getAccessibleChildCount();
|
||||
|
||||
for( sal_Int64 i=0; i < nCount; i++ )
|
||||
{
|
||||
try
|
||||
{
|
||||
if( xAcc->getAccessibleChild( i ) == xThis )
|
||||
if (mpParent->getAccessibleChild(i) == xThis)
|
||||
return i;
|
||||
}
|
||||
catch(const css::lang::IndexOutOfBoundsException &)
|
||||
|
||||
Reference in New Issue
Block a user