Kaydet (Commit) 6b522f0a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#708824 Unused pointer value

Change-Id: I2993b61d5556abd039f30c39938b6726fd2b1197
üst f008fe11
......@@ -317,11 +317,8 @@ PropertyState SfxItemPropertySet::getPropertyState(const OUString& rName, cons
}
sal_uInt16 nWhich = pEntry->nWID;
// item holen
const SfxPoolItem* pItem = 0;
SfxItemState eState = rSet.GetItemState( nWhich, false, &pItem );
if(!pItem && nWhich != rSet.GetPool()->GetSlotId(nWhich))
pItem = &rSet.GetPool()->GetDefaultItem(nWhich);
// get item state
SfxItemState eState = rSet.GetItemState(nWhich, false);
// item-Wert als UnoAny zurueckgeben
if(eState == SFX_ITEM_DEFAULT)
eRet = PropertyState_DEFAULT_VALUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment