vcl a11y: Drop local var in VCLXAccessibleComponent::getAccessibleParent

Return the result right away instead of first assigning it
to a local XAccessible variable.

Change-Id: I676ecfb07d5fe5403bc8e111569db7e0c38659d6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210937
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-09-16 09:25:12 +02:00
parent cf3ac4fe15
commit 6d86cbbbef
@@ -517,10 +517,10 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessi
{
OExternalLockGuard aGuard( this );
uno::Reference< accessibility::XAccessible > xAcc;
if ( GetWindow() )
xAcc = GetWindow()->GetAccessibleParent();
return xAcc;
return GetWindow()->GetAccessibleParent();
return {};
}
sal_Int16 VCLXAccessibleComponent::getAccessibleRole( )