From 2e9dd9a0dfb01e4d345db408a21118bc567a560b Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Wed, 9 Sep 2026 18:39:35 +0200 Subject: [PATCH] sw a11y: Use more concrete type in SwAccessibleTable::DisposeChild Use the more concrete SwAccessibleContext instead of the abstract XAccessible UNO interface for the local variable. Change-Id: I8ba838163a683c088886ee695188a779aacf6b01 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210620 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- sw/source/core/access/acctable.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/source/core/access/acctable.cxx b/sw/source/core/access/acctable.cxx index 388abdde326d..e075a6e708ff 100644 --- a/sw/source/core/access/acctable.cxx +++ b/sw/source/core/access/acctable.cxx @@ -1098,8 +1098,8 @@ void SwAccessibleTable::DisposeChild( const SwAccessibleChild& rChildFrameOrObj, // the map, and we have to call our superclass. // The other situation is that we have been call by a call to get notified // about its change. We then must not call the superclass - uno::Reference< XAccessible > xAcc( GetMap()->GetContext( pFrame, false ) ); - if( !xAcc.is() ) + rtl::Reference pAcc(GetMap()->GetContextImpl(pFrame, false)); + if (!pAcc.is()) SwAccessibleContext::DisposeChild( rChildFrameOrObj, bRecursive, bCanSkipInvisible ); }