accessibility/source/standard/vclxaccessibletabpage.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
New commits: commit 5c3619468a5e19bec17439fe86adc263cfc993aa Author: Michael Weghorn <m.wegh...@posteo.de> AuthorDate: Mon Oct 28 08:49:54 2024 +0100 Commit: Michael Weghorn <m.wegh...@posteo.de> CommitDate: Mon Oct 28 12:14:10 2024 +0100 a11y: Return early in VCLXAccessibleTabPage::getAccessibleAtPoint Change-Id: I217d8a699a55ee8da08fce2c17ff4a2ce51319da Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175714 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.wegh...@posteo.de> diff --git a/accessibility/source/standard/vclxaccessibletabpage.cxx b/accessibility/source/standard/vclxaccessibletabpage.cxx index 3e3c09d148a7..1cf1330cfbe9 100644 --- a/accessibility/source/standard/vclxaccessibletabpage.cxx +++ b/accessibility/source/standard/vclxaccessibletabpage.cxx @@ -399,7 +399,6 @@ Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleAtPoint( const awt: { OExternalLockGuard aGuard( this ); - Reference< XAccessible > xChild; for ( sal_Int64 i = 0, nCount = getAccessibleChildCount(); i < nCount; ++i ) { Reference< XAccessible > xAcc = getAccessibleChild( i ); @@ -412,14 +411,13 @@ Reference< XAccessible > VCLXAccessibleTabPage::getAccessibleAtPoint( const awt: Point aPos = VCLUnoHelper::ConvertToVCLPoint(rPoint); if ( aRect.Contains( aPos ) ) { - xChild = std::move(xAcc); - break; + return xAcc; } } } } - return xChild; + return nullptr; }