svx a11y: Return directly in SvxRectCtlAccessibleContext::getAccessibleAtPoint

Return result directly, without assigning to a local XAccessible
var first.

Change-Id: If9418dcb474d5e87c13d6219f1ea877aff579ec3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211222
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
This commit is contained in:
Michael Weghorn
2026-09-20 22:22:42 +02:00
parent d2a4355fd9
commit c9aadb8a2e
@@ -116,14 +116,12 @@ Reference< XAccessible > SAL_CALL SvxRectCtlAccessibleContext::getAccessibleAtPo
{
::osl::MutexGuard aGuard( m_aMutex );
Reference< XAccessible > xRet;
tools::Long nChild = mpRepr ? PointToIndex(mpRepr->GetApproxRPFromPixPt(rPoint)) : NOCHILDSELECTED;
if (nChild != NOCHILDSELECTED)
xRet = getAccessibleChild( nChild );
return getAccessibleChild(nChild);
return xRet;
return {};
}
// XAccessibleContext