diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-01 10:30:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-23 14:19:32 +0000 |
commit | c0c4519e0d5b555f59bbc04cc616454edfd1f4ce (patch) | |
tree | 9cecccbb909c34a1aacf7a542682c248266f503e /accessibility | |
parent | 1b6acdc60bc284c3e78bb05f70c24a2e36b2ccc7 (diff) |
loplugin:unocast (VCLXAccessibleComponent)
(See the upcoming commit introducing that loplugin:unocast on why such
dynamic_casts from UNO types are dangerous.)
Change-Id: I11496cc1d37e89ce8f11991f86c7b60bb1b93106
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144748
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/inc/extended/accessiblelistbox.hxx | 8 | ||||
-rw-r--r-- | accessibility/source/extended/accessiblelistbox.cxx | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/accessibility/inc/extended/accessiblelistbox.hxx b/accessibility/inc/extended/accessiblelistbox.hxx index 339e32f3b0b7..7138820123ad 100644 --- a/accessibility/inc/extended/accessiblelistbox.hxx +++ b/accessibility/inc/extended/accessiblelistbox.hxx @@ -35,12 +35,14 @@ namespace accessibility { class AccessibleListBoxEntry; + using AccessibleListBox_Base = cppu::ImplHelper2< + css::accessibility::XAccessible, + css::accessibility::XAccessibleSelection>; + /** the class OAccessibleListBoxEntry represents the base class for an accessible object of a listbox entry */ class AccessibleListBox : - public cppu::ImplHelper2< - css::accessibility::XAccessible, - css::accessibility::XAccessibleSelection>, + public AccessibleListBox_Base, public VCLXAccessibleComponent { diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index df4a9a759c0f..bb1131d0ab4f 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -58,8 +58,10 @@ namespace accessibility dispose(); } } - IMPLEMENT_FORWARD_XINTERFACE2(AccessibleListBox, VCLXAccessibleComponent, ImplHelper2) - IMPLEMENT_FORWARD_XTYPEPROVIDER2(AccessibleListBox, VCLXAccessibleComponent, ImplHelper2) + IMPLEMENT_FORWARD_XINTERFACE2( + AccessibleListBox, VCLXAccessibleComponent, AccessibleListBox_Base); + IMPLEMENT_FORWARD_XTYPEPROVIDER2( + AccessibleListBox, VCLXAccessibleComponent, AccessibleListBox_Base); void AccessibleListBox::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) { |