diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 16:47:23 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-03-13 16:47:23 +0000 |
commit | 6b522f0a6d5518807ea78a425ddcef6ebb3dec89 (patch) | |
tree | 658c1b0fbb53b4127ee9020233a9a48b4ff3b360 /svl | |
parent | f008fe11b7723b9433d208af2b6d9808e3460844 (diff) |
coverity#708824 Unused pointer value
Change-Id: I2993b61d5556abd039f30c39938b6726fd2b1197
Diffstat (limited to 'svl')
-rw-r--r-- | svl/source/items/itemprop.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/svl/source/items/itemprop.cxx b/svl/source/items/itemprop.cxx index 3c45186615de..e2492d3d6b54 100644 --- a/svl/source/items/itemprop.cxx +++ b/svl/source/items/itemprop.cxx @@ -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; |