coverity#1132660 Dereference after null check
Change-Id: Ib184d73f2ced3beca8540a37bab74c4a712170ba
This commit is contained in:
parent
989c7ce9a8
commit
014a0e5d6f
@ -427,32 +427,29 @@ namespace accessibility
|
||||
return AccessibleRole::TREE_ITEM;
|
||||
else if( nType == TREEBOX_ALLITEM_ACCROLE_TYPE_LIST)
|
||||
return AccessibleRole::LIST_ITEM;
|
||||
}
|
||||
|
||||
sal_uInt16 treeFlag = pBox->GetTreeFlags();
|
||||
if(treeFlag & TREEFLAG_CHKBTN )
|
||||
{
|
||||
SvTreeListEntry* pEntry = pBox->GetEntryFromPath( m_aEntryPath );
|
||||
SvButtonState eState = pBox->GetCheckButtonState( pEntry );
|
||||
switch( eState )
|
||||
sal_uInt16 treeFlag = pBox->GetTreeFlags();
|
||||
if(treeFlag & TREEFLAG_CHKBTN )
|
||||
{
|
||||
SvTreeListEntry* pEntry = pBox->GetEntryFromPath( m_aEntryPath );
|
||||
SvButtonState eState = pBox->GetCheckButtonState( pEntry );
|
||||
switch( eState )
|
||||
{
|
||||
case SV_BUTTON_CHECKED:
|
||||
case SV_BUTTON_UNCHECKED:
|
||||
return AccessibleRole::CHECK_BOX;
|
||||
case SV_BUTTON_TRISTATE:
|
||||
default:
|
||||
return AccessibleRole::LABEL;
|
||||
}
|
||||
}
|
||||
if(getRoleType() == 0)
|
||||
return AccessibleRole::LIST_ITEM;
|
||||
else
|
||||
//o is: return AccessibleRole::LABEL;
|
||||
return AccessibleRole::TREE_ITEM;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if(getRoleType() == 0)
|
||||
return AccessibleRole::LIST_ITEM;
|
||||
else
|
||||
//o is: return AccessibleRole::LABEL;
|
||||
return AccessibleRole::TREE_ITEM;
|
||||
}
|
||||
return AccessibleRole::UNKNOWN;
|
||||
}
|
||||
// -----------------------------------------------------------------------------
|
||||
OUString SAL_CALL AccessibleListBoxEntry::getAccessibleDescription( ) throw (RuntimeException)
|
||||
|
Loading…
x
Reference in New Issue
Block a user