diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-12-12 13:32:11 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-12-12 23:01:34 +0100 |
commit | 9486e163b6b563f5ddec6a56826e03ac16374d7b (patch) | |
tree | 186d2cfc0cbc6863db6620ddf32225f91d079f13 /accessibility | |
parent | 843a772dbbe6864045be421f8e45276645f1f16a (diff) |
a11y: Pass non-const ref to AccessibleListBox ctor
... and to the AccessibleIconView subclass one, too.
This is in preparation of switching the base class VCLXAccessibleComponent
ctor to taking a vcl::Window* instead of a VCLXWindow* in an
upcoming commit.
Change-Id: I10074f4c6716c2c7cb3b800c75bec8200ee6208c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178366
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Diffstat (limited to 'accessibility')
4 files changed, 5 insertions, 7 deletions
diff --git a/accessibility/inc/extended/AccessibleIconView.hxx b/accessibility/inc/extended/AccessibleIconView.hxx index d5ab5eafb198..5accfbdfe4c5 100644 --- a/accessibility/inc/extended/AccessibleIconView.hxx +++ b/accessibility/inc/extended/AccessibleIconView.hxx @@ -18,7 +18,7 @@ namespace accessibility class AccessibleIconView final : public AccessibleListBox { public: - AccessibleIconView(SvTreeListBox const& _rListBox, + AccessibleIconView(SvTreeListBox& _rListBox, const css::uno::Reference<css::accessibility::XAccessible>& _xParent); protected: diff --git a/accessibility/inc/extended/accessiblelistbox.hxx b/accessibility/inc/extended/accessiblelistbox.hxx index 7570bdbb5afe..61f4839ec481 100644 --- a/accessibility/inc/extended/accessiblelistbox.hxx +++ b/accessibility/inc/extended/accessiblelistbox.hxx @@ -68,7 +68,7 @@ namespace accessibility @param _xParent is our parent accessible object */ - AccessibleListBox( SvTreeListBox const & _rListBox, + AccessibleListBox(SvTreeListBox& _rListBox, const css::uno::Reference< css::accessibility::XAccessible >& _xParent ); virtual ~AccessibleListBox() override; diff --git a/accessibility/source/extended/AccessibleIconView.cxx b/accessibility/source/extended/AccessibleIconView.cxx index 25b5f39cdafe..82235c29b526 100644 --- a/accessibility/source/extended/AccessibleIconView.cxx +++ b/accessibility/source/extended/AccessibleIconView.cxx @@ -19,8 +19,7 @@ namespace accessibility { AccessibleIconView::AccessibleIconView( - SvTreeListBox const& _rListBox, - const css::uno::Reference<css::accessibility::XAccessible>& _xParent) + SvTreeListBox& _rListBox, const css::uno::Reference<css::accessibility::XAccessible>& _xParent) : AccessibleListBox(_rListBox, _xParent) { } diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 8bdf8e84364a..5ad681d3b233 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -42,9 +42,8 @@ namespace accessibility // Ctor() and Dtor() - AccessibleListBox::AccessibleListBox( SvTreeListBox const & _rListBox, const Reference< XAccessible >& _xParent ) : - - ImplInheritanceHelper( _rListBox.GetWindowPeer() ), + AccessibleListBox::AccessibleListBox(SvTreeListBox& _rListBox, const Reference< XAccessible >& _xParent) + : ImplInheritanceHelper( _rListBox.GetWindowPeer() ), m_xParent( _xParent ) { } |