diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-01-09 11:43:36 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-01-09 15:15:41 +0000 |
commit | a58abb4296c50228ebd5510e50363072e9a96774 (patch) | |
tree | 483b2bec211f218ea5f532d9317d1a437af0f0b9 /toolkit/source/awt | |
parent | 2570eb7265fbae840bf9f2d83463b0bee09beaef (diff) |
Clean up VCLXAccessibleComponent::getAccessibleParent
...after 21e0d8162a0e683558c4d042ce688fc9a6833809 "loplugin:unusedfields" had
dropped the base class
OAccessibleImplementationAccess::implGetForeignControlledParent
Change-Id: I753aad41baaa0ac1d1f7eb0a6084993df5a58d5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145197
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'toolkit/source/awt')
-rw-r--r-- | toolkit/source/awt/vclxaccessiblecomponent.cxx | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/toolkit/source/awt/vclxaccessiblecomponent.cxx b/toolkit/source/awt/vclxaccessiblecomponent.cxx index aef0eb1c3852..666ba75bde6a 100644 --- a/toolkit/source/awt/vclxaccessiblecomponent.cxx +++ b/toolkit/source/awt/vclxaccessiblecomponent.cxx @@ -553,8 +553,10 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessi return xAcc; } -uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getVclParent() const +uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessibleParent( ) { + OExternalLockGuard aGuard( this ); + uno::Reference< accessibility::XAccessible > xAcc; if ( GetWindow() ) { @@ -565,16 +567,6 @@ uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getVclPare return xAcc; } -uno::Reference< accessibility::XAccessible > VCLXAccessibleComponent::getAccessibleParent( ) -{ - OExternalLockGuard aGuard( this ); - - // we do _not_ have a foreign-controlled parent -> default to our VCL parent - uno::Reference< accessibility::XAccessible > xAcc = getVclParent(); - - return xAcc; -} - sal_Int64 VCLXAccessibleComponent::getAccessibleIndexInParent( ) { OExternalLockGuard aGuard( this ); |