From d2a4355fd9f3b6a3bb282675c30d012274585b31 Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Sat, 19 Sep 2026 14:20:40 +0200 Subject: [PATCH] svtools a11y: Return directly in ValueItemAcc::getAccessibleAtPoint Drop local variable and simply return the empty reference right-away. Change-Id: I85dd3db8bdf3190dfb5634d62c687900969c5651 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211221 Reviewed-by: Michael Weghorn Tested-by: Jenkins --- svtools/source/control/valueacc.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/svtools/source/control/valueacc.cxx b/svtools/source/control/valueacc.cxx index 0ec2d1900560..399887e17c19 100644 --- a/svtools/source/control/valueacc.cxx +++ b/svtools/source/control/valueacc.cxx @@ -218,8 +218,7 @@ lang::Locale SAL_CALL ValueItemAcc::getLocale() uno::Reference< accessibility::XAccessible > SAL_CALL ValueItemAcc::getAccessibleAtPoint( const awt::Point& ) { - uno::Reference< accessibility::XAccessible > xRet; - return xRet; + return {}; } awt::Rectangle ValueItemAcc::implGetBounds()