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