From 9486e163b6b563f5ddec6a56826e03ac16374d7b Mon Sep 17 00:00:00 2001 From: Michael Weghorn Date: Thu, 12 Dec 2024 13:32:11 +0100 Subject: 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 Tested-by: Jenkins --- accessibility/inc/extended/AccessibleIconView.hxx | 2 +- accessibility/inc/extended/accessiblelistbox.hxx | 2 +- accessibility/source/extended/AccessibleIconView.cxx | 3 +-- accessibility/source/extended/accessiblelistbox.cxx | 5 ++--- 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& _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& _xParent) + SvTreeListBox& _rListBox, const css::uno::Reference& _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 ) { } -- cgit