summaryrefslogtreecommitdiff
path: root/accessibility
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-15 08:48:36 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-17 08:25:06 +0200
commit16690220ed6e68f2e9674a09b5008f38c5e6ed8d (patch)
tree2f830b7ac23f136585e7dc4adf5d456f4995cc99 /accessibility
parent86d70dc840b88ed827d6d8febaf512264009951d (diff)
loplugin:singlevalfields
tighten up the handling of binary operators Change-Id: I262ec57bf7142fa094d240738150a94d83fd15ee Reviewed-on: https://gerrit.libreoffice.org/61777 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/inc/standard/vclxaccessiblebox.hxx6
-rw-r--r--accessibility/source/standard/vclxaccessiblebox.cxx11
2 files changed, 1 insertions, 16 deletions
diff --git a/accessibility/inc/standard/vclxaccessiblebox.hxx b/accessibility/inc/standard/vclxaccessiblebox.hxx
index 5b5f46ae6f39..1fcf97c21baf 100644
--- a/accessibility/inc/standard/vclxaccessiblebox.hxx
+++ b/accessibility/inc/standard/vclxaccessiblebox.hxx
@@ -81,8 +81,6 @@ public:
*/
sal_Int16 SAL_CALL getAccessibleRole() override;
- sal_Int32 SAL_CALL getAccessibleIndexInParent() override;
-
// XAccessibleAction
/** There is one action for drop down boxes and none for others.
@@ -154,10 +152,6 @@ protected:
virtual void FillAccessibleStateSet( utl::AccessibleStateSetHelper& rStateSet ) override;
sal_Int32 implGetAccessibleChildCount();
-
-private:
- /// Index in parent. This is settable from the outside.
- sal_Int32 m_nIndexInParent;
};
#endif
diff --git a/accessibility/source/standard/vclxaccessiblebox.cxx b/accessibility/source/standard/vclxaccessiblebox.cxx
index e80c14abee3c..c43245428253 100644
--- a/accessibility/source/standard/vclxaccessiblebox.cxx
+++ b/accessibility/source/standard/vclxaccessiblebox.cxx
@@ -42,8 +42,7 @@ using namespace ::com::sun::star::accessibility;
VCLXAccessibleBox::VCLXAccessibleBox (VCLXWindow* pVCLWindow, BoxType aType, bool bIsDropDownBox)
: VCLXAccessibleComponent (pVCLWindow),
m_aBoxType (aType),
- m_bIsDropDownBox (bIsDropDownBox),
- m_nIndexInParent (DEFAULT_INDEX_IN_PARENT)
+ m_bIsDropDownBox (bIsDropDownBox)
{
// Set up the flags that indicate which children this object has.
m_bHasListChild = true;
@@ -354,14 +353,6 @@ sal_Int16 SAL_CALL VCLXAccessibleBox::getAccessibleRole()
return AccessibleRole::PANEL;
}
-sal_Int32 SAL_CALL VCLXAccessibleBox::getAccessibleIndexInParent()
-{
- if (m_nIndexInParent != DEFAULT_INDEX_IN_PARENT)
- return m_nIndexInParent;
- else
- return VCLXAccessibleComponent::getAccessibleIndexInParent();
-}
-
//===== XAccessibleAction ===================================================
sal_Int32 SAL_CALL VCLXAccessibleBox::getAccessibleActionCount()