diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-08 12:39:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-06-08 15:01:13 +0200 |
commit | 516bdf7989dc2e2650490893e1ead054d40eaf37 (patch) | |
tree | 8eb2dab616ea6e73696ca6d8a32dca0bb2881621 /accessibility | |
parent | fe977ec07087b103de8c809597fdaea8dd629837 (diff) |
loplugin:singlevalfields
Change-Id: I7c00b7d932bf96a0725eac5482580461baea6977
Reviewed-on: https://gerrit.libreoffice.org/73697
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessiblelistbox.cxx | 7 | ||||
-rw-r--r-- | accessibility/source/extended/accessiblelistboxentry.cxx | 4 |
2 files changed, 0 insertions, 11 deletions
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index 63f7ff87ac10..0441de61dfbc 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -394,13 +394,6 @@ namespace accessibility { ::comphelper::OExternalLockGuard aGuard( this ); - if(getListBox()) - { - SvTreeAccRoleType nType = getListBox()->GetAllEntriesAccessibleRoleType(); - if( nType == SvTreeAccRoleType::TREE) - return AccessibleRole::TREE; - } - //o is: return AccessibleRole::TREE; bool bHasButtons = (getListBox()->GetStyle() & WB_HASBUTTONS)!=0; if(!bHasButtons && (getListBox()->GetTreeFlags() & SvTreeFlags::CHKBTN)) diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index b3257345a822..12dd5fbbc629 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -397,10 +397,6 @@ namespace accessibility SvTreeListBox* pBox = getListBox(); if(pBox) { - SvTreeAccRoleType nType = pBox->GetAllEntriesAccessibleRoleType(); - if( nType == SvTreeAccRoleType::TREE) - return AccessibleRole::TREE_ITEM; - SvTreeFlags treeFlag = pBox->GetTreeFlags(); if(treeFlag & SvTreeFlags::CHKBTN ) { |