diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2024-12-13 13:39:32 +0100 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2024-12-13 20:51:38 +0100 |
commit | a3e4ee0aa6cc55ed50f792fcfecaedf8ae623b09 (patch) | |
tree | cd3e9ec70b212c8aec5e9b15fe737ea83e85b95a /accessibility | |
parent | 7eefb8056311fe31be6b2a8af4f234e90b90e556 (diff) |
a11y: Drop always null BrowseBoxAccessibleElement focus win param
Drop the `_xFocusWindow` param from the BrowseBoxAccessibleElement
ctor. Both subclasses are unconditionally passing nullptr.
Just unconditionally pass nullptr in the base class ctor instead
of forwarding the (always nullptr) param.
Change-Id: I9296ae8dae8ac53c52cec99e143288e70a586ce0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178432
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'accessibility')
4 files changed, 5 insertions, 11 deletions
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx index cd1c09590d70..f75aa59c2b16 100644 --- a/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx +++ b/accessibility/inc/extended/AccessibleBrowseBoxBase.hxx @@ -323,20 +323,17 @@ protected: @param rxParent XAccessible interface of the parent object. @param rBrowseBox The BrowseBox control. - @param _xFocusWindow The window that gets all the focus events. @param eObjType Object type */ BrowseBoxAccessibleElement( const css::uno::Reference< css::accessibility::XAccessible >& rxParent, ::vcl::IAccessibleTableProvider& rBrowseBox, - const css::uno::Reference< css::awt::XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType eObjType ); /** Constructor sets specified name and description. @param rxParent XAccessible interface of the parent object. @param rBrowseBox The BrowseBox control. - @param _xFocusWindow The window that gets all the focus events. @param eObjType Object type @param rName The name of this object. @param rDescription The description text of this object. @@ -344,7 +341,6 @@ protected: BrowseBoxAccessibleElement( const css::uno::Reference< css::accessibility::XAccessible >& rxParent, ::vcl::IAccessibleTableProvider& rBrowseBox, - const css::uno::Reference< css::awt::XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType eObjType, const OUString& rName, const OUString& rDescription ); diff --git a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx index 2aa047b105c1..5557ba691564 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxBase.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxBase.cxx @@ -518,16 +518,15 @@ Reference< css::accessibility::XAccessibleContext > SAL_CALL BrowseBoxAccessible BrowseBoxAccessibleElement::BrowseBoxAccessibleElement( const css::uno::Reference< css::accessibility::XAccessible >& rxParent, ::vcl::IAccessibleTableProvider& rBrowseBox, - const css::uno::Reference< css::awt::XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType eObjType ) - : BrowseBoxAccessibleElement_Base(rxParent, rBrowseBox, _xFocusWindow, eObjType) + AccessibleBrowseBoxObjType eObjType ) + : BrowseBoxAccessibleElement_Base(rxParent, rBrowseBox, nullptr, eObjType) { } BrowseBoxAccessibleElement::BrowseBoxAccessibleElement( const css::uno::Reference< css::accessibility::XAccessible >& rxParent, ::vcl::IAccessibleTableProvider& rBrowseBox, - const css::uno::Reference< css::awt::XWindow >& _xFocusWindow, AccessibleBrowseBoxObjType eObjType, - const OUString& rName, const OUString& rDescription ) - : BrowseBoxAccessibleElement_Base(rxParent, rBrowseBox, _xFocusWindow, eObjType, rName, rDescription) + AccessibleBrowseBoxObjType eObjType, const OUString& rName, const OUString& rDescription ) + : BrowseBoxAccessibleElement_Base(rxParent, rBrowseBox, nullptr, eObjType, rName, rDescription) { } diff --git a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx index 868a86e3eebf..c7e8ce1605cf 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxHeaderCell.cxx @@ -35,7 +35,6 @@ AccessibleBrowseBoxHeaderCell::AccessibleBrowseBoxHeaderCell(sal_Int32 _nColumnR AccessibleBrowseBoxObjType eObjType) : BrowseBoxAccessibleElement(rxParent, rBrowseBox, - nullptr, eObjType, rBrowseBox.GetAccessibleObjectName( eObjType ,_nColumnRowId), rBrowseBox.GetAccessibleObjectDescription( eObjType ,_nColumnRowId)) diff --git a/accessibility/source/extended/AccessibleBrowseBoxTableBase.cxx b/accessibility/source/extended/AccessibleBrowseBoxTableBase.cxx index bb213c348f3d..c1363eaf0249 100644 --- a/accessibility/source/extended/AccessibleBrowseBoxTableBase.cxx +++ b/accessibility/source/extended/AccessibleBrowseBoxTableBase.cxx @@ -41,7 +41,7 @@ AccessibleBrowseBoxTableBase::AccessibleBrowseBoxTableBase( const Reference< XAccessible >& rxParent, vcl::IAccessibleTableProvider& rBrowseBox, AccessibleBrowseBoxObjType eObjType ) : - AccessibleBrowseBoxTableImplHelper( rxParent, rBrowseBox, nullptr, eObjType ) + AccessibleBrowseBoxTableImplHelper(rxParent, rBrowseBox, eObjType) { } |