coverity#708824 Unused pointer value
Change-Id: I2993b61d5556abd039f30c39938b6726fd2b1197
This commit is contained in:
@@ -317,11 +317,8 @@ PropertyState SfxItemPropertySet::getPropertyState(const OUString& rName, cons
|
|||||||
}
|
}
|
||||||
sal_uInt16 nWhich = pEntry->nWID;
|
sal_uInt16 nWhich = pEntry->nWID;
|
||||||
|
|
||||||
// item holen
|
// get item state
|
||||||
const SfxPoolItem* pItem = 0;
|
SfxItemState eState = rSet.GetItemState(nWhich, false);
|
||||||
SfxItemState eState = rSet.GetItemState( nWhich, false, &pItem );
|
|
||||||
if(!pItem && nWhich != rSet.GetPool()->GetSlotId(nWhich))
|
|
||||||
pItem = &rSet.GetPool()->GetDefaultItem(nWhich);
|
|
||||||
// item-Wert als UnoAny zurueckgeben
|
// item-Wert als UnoAny zurueckgeben
|
||||||
if(eState == SFX_ITEM_DEFAULT)
|
if(eState == SFX_ITEM_DEFAULT)
|
||||||
eRet = PropertyState_DEFAULT_VALUE;
|
eRet = PropertyState_DEFAULT_VALUE;
|
||||||
|
Reference in New Issue
Block a user