summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2024-12-13 12:42:25 +0100
committerMichael Weghorn <m.weghorn@posteo.de>2024-12-13 20:51:25 +0100
commitfd50ed4aac52d5a83a417949e358edf6eb34b785 (patch)
tree4f5628e94b2db52296bd31e9f5b1540900edfce4 /accessibility
parentaa2cad6d86d13fe4981e67095cdeabb9bae3a3d3 (diff)
a11y: Drop always null AccessibleCheckBoxCell focus win param
Both callers of AccessibleFactory::createAccessibleCheckBoxCell unconditionally pass nullptr for the `_xFocusWindow` param. Therefore, drop the parameter from that method and the AccessibleCheckBoxCell ctor, and unconditionally pass nullptr to the base class ctor. This is the same as for AccessibleBrowseBoxTableCell in previous commit Change-Id: I22d5cb98332aa5d89fc4c479d0ec29588fe83e4d Author: Michael Weghorn <m.weghorn@posteo.de> Date: Fri Dec 13 12:37:03 2024 +0100 a11y: Drop always null AccessibleBrowseBoxTableCell focus win param Change-Id: I76660aed909fc73ab19bc99a3e3bfb54176e7e10 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178417 Reviewed-by: Michael Weghorn <m.weghorn@posteo.de> Tested-by: Jenkins
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx1
-rw-r--r--accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx3
-rw-r--r--accessibility/source/helper/acc_factory.cxx6
3 files changed, 3 insertions, 7 deletions
diff --git a/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx b/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx
index dbc2fbd52aaf..25a9ea2b737e 100644
--- a/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx
+++ b/accessibility/inc/extended/AccessibleBrowseBoxCheckBoxCell.hxx
@@ -44,7 +44,6 @@ namespace accessibility
public:
AccessibleCheckBoxCell(const css::uno::Reference< css::accessibility::XAccessible >& _rxParent,
::vcl::IAccessibleTableProvider& _rBrowseBox,
- const css::uno::Reference< css::awt::XWindow >& _xFocusWindow,
sal_Int32 _nRowPos,
sal_uInt16 _nColPos,
const TriState& _eState,
diff --git a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx
index fa91719e78d5..e0a36478b0a2 100644
--- a/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx
+++ b/accessibility/source/extended/AccessibleBrowseBoxCheckBoxCell.cxx
@@ -30,12 +30,11 @@ namespace accessibility
AccessibleCheckBoxCell::AccessibleCheckBoxCell(const Reference<XAccessible >& _rxParent,
vcl::IAccessibleTableProvider& _rBrowseBox,
- const css::uno::Reference< css::awt::XWindow >& _xFocusWindow,
sal_Int32 _nRowPos,
sal_uInt16 _nColPos
,const TriState& _eState,
bool _bIsTriState)
- :AccessibleBrowseBoxCell(_rxParent, _rBrowseBox, _xFocusWindow, _nRowPos, _nColPos, AccessibleBrowseBoxObjType::CheckBoxCell)
+ :AccessibleBrowseBoxCell(_rxParent, _rBrowseBox, nullptr, _nRowPos, _nColPos, AccessibleBrowseBoxObjType::CheckBoxCell)
,m_eState(_eState)
,m_bIsTriState(_bIsTriState)
{
diff --git a/accessibility/source/helper/acc_factory.cxx b/accessibility/source/helper/acc_factory.cxx
index d238e3720e43..a3b3032e54e8 100644
--- a/accessibility/source/helper/acc_factory.cxx
+++ b/accessibility/source/helper/acc_factory.cxx
@@ -190,7 +190,6 @@ public:
createAccessibleCheckBoxCell(
const css::uno::Reference< css::accessibility::XAccessible >& _rxParent,
vcl::IAccessibleTableProvider& _rBrowseBox,
- const css::uno::Reference< css::awt::XWindow >& _xFocusWindow,
sal_Int32 _nRowPos,
sal_uInt16 _nColPos,
const TriState& _eState,
@@ -428,10 +427,9 @@ Reference< XAccessible > AccessibleFactory::createAccessibleBrowseBoxHeaderCell(
Reference< XAccessible > AccessibleFactory::createAccessibleCheckBoxCell(
const Reference< XAccessible >& _rxParent, vcl::IAccessibleTableProvider& _rBrowseBox,
- const Reference< XWindow >& _xFocusWindow, sal_Int32 _nRowPos, sal_uInt16 _nColPos,
- const TriState& _eState, bool _bIsTriState ) const
+ sal_Int32 _nRowPos, sal_uInt16 _nColPos, const TriState& _eState, bool _bIsTriState) const
{
- return new AccessibleCheckBoxCell( _rxParent, _rBrowseBox, _xFocusWindow,
+ return new AccessibleCheckBoxCell( _rxParent, _rBrowseBox,
_nRowPos, _nColPos, _eState, _bIsTriState );
}