diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-10-28 08:49:54 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-10-28 12:14:10 +0100 |
commit | 5c3619468a5e19bec17439fe86adc263cfc993aa (patch) | |
tree | 44874e956536603e3cc77e474c5ff3515c29f713 | |
parent | 4c1fea101d56a78cf2c16cf4dedb61c2888a44c3 (diff) |
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.weghorn@posteo.de>
-rw-r--r-- | accessibility/source/standard/vclxaccessibletabpage.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
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; } |