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:
@@ -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( )
|
||||
|
||||
Reference in New Issue
Block a user