From 38143e4599e4ec759a11ea96a4b852bb00a42ab6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 21 Apr 2015 14:38:41 +0200 Subject: convert TREEBOX_ALLITEM constants to scoped enum Change-Id: I46f792fce6ff09f2b00144f401ee396101d8460d --- accessibility/source/extended/accessiblelistbox.cxx | 6 +++--- accessibility/source/extended/accessiblelistboxentry.cxx | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'accessibility/source') 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(); -- cgit