diff options
author | Noel Grandin <noel@peralex.com> | 2015-04-21 14:38:41 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-04-22 10:28:41 +0200 |
commit | 38143e4599e4ec759a11ea96a4b852bb00a42ab6 (patch) | |
tree | ca7259145e28586440c3c49ade6672b9337b4210 /accessibility | |
parent | 8d3eefd3b2b6dad051247fbd4a8097bb154617e1 (diff) |
convert TREEBOX_ALLITEM constants to scoped enum
Change-Id: I46f792fce6ff09f2b00144f401ee396101d8460d
Diffstat (limited to 'accessibility')
-rw-r--r-- | accessibility/source/extended/accessiblelistbox.cxx | 6 | ||||
-rw-r--r-- | accessibility/source/extended/accessiblelistboxentry.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/accessibility/source/extended/accessiblelistbox.cxx b/accessibility/source/extended/accessiblelistbox.cxx index c031bcf0283a..2c33734abd30 100644 --- a/accessibility/source/extended/accessiblelistbox.cxx +++ b/accessibility/source/extended/accessiblelistbox.cxx @@ -436,10 +436,10 @@ namespace accessibility if(getListBox()) { - short nType = getListBox()->GetAllEntriesAccessibleRoleType(); - if( nType == TREEBOX_ALLITEM_ACCROLE_TYPE_TREE) + SvTreeAccRoleType nType = getListBox()->GetAllEntriesAccessibleRoleType(); + if( nType == SvTreeAccRoleType::TREE) return AccessibleRole::TREE; - else if( nType == TREEBOX_ALLITEM_ACCROLE_TYPE_LIST) + else if( nType == SvTreeAccRoleType::LIST) return AccessibleRole::LIST; } diff --git a/accessibility/source/extended/accessiblelistboxentry.cxx b/accessibility/source/extended/accessiblelistboxentry.cxx index 39e4cf2e7f53..7f68e1116ed9 100644 --- a/accessibility/source/extended/accessiblelistboxentry.cxx +++ b/accessibility/source/extended/accessiblelistboxentry.cxx @@ -416,10 +416,10 @@ namespace accessibility SvTreeListBox* pBox = getListBox(); if(pBox) { - short nType = pBox->GetAllEntriesAccessibleRoleType(); - if( nType == TREEBOX_ALLITEM_ACCROLE_TYPE_TREE) + SvTreeAccRoleType nType = pBox->GetAllEntriesAccessibleRoleType(); + if( nType == SvTreeAccRoleType::TREE) return AccessibleRole::TREE_ITEM; - else if( nType == TREEBOX_ALLITEM_ACCROLE_TYPE_LIST) + else if( nType == SvTreeAccRoleType::LIST) return AccessibleRole::LIST_ITEM; SvTreeFlags treeFlag = pBox->GetTreeFlags(); |