diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-10-28 09:45:59 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-10-28 09:46:30 +0100 |
commit | 316a0487dcf9bb15db159552e70dbfc43b785618 (patch) | |
tree | ce8a0a59769d4d212da4d8a7854e44bef47a5884 /editeng/source/uno | |
parent | bf7240d0676b4350892e01fa8c1ba5eb6a3913c6 (diff) |
Variable X is reassigned a value before the old one has been used
Change-Id: I196145550e5f0e53f9498ddd127fec588be064b9
Diffstat (limited to 'editeng/source/uno')
-rw-r--r-- | editeng/source/uno/unoipset.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editeng/source/uno/unoipset.cxx b/editeng/source/uno/unoipset.cxx index a99ee1afd2f5..db19edd3f046 100644 --- a/editeng/source/uno/unoipset.cxx +++ b/editeng/source/uno/unoipset.cxx @@ -167,7 +167,6 @@ void SvxItemPropertySet::setPropertyValue( const SfxItemPropertySimpleEntry* pMa // Get item const SfxPoolItem* pItem = 0; - SfxPoolItem *pNewItem = 0; SfxItemState eState = rSet.GetItemState( pMap->nWID, sal_True, &pItem ); SfxItemPool* pPool = rSet.GetPool(); @@ -197,7 +196,7 @@ void SvxItemPropertySet::setPropertyValue( const SfxItemPropertySimpleEntry* pMa SvxUnoConvertFromMM( eMapUnit, aValue ); } - pNewItem = pItem->Clone(); + SfxPoolItem *pNewItem = pItem->Clone(); sal_uInt8 nMemberId = pMap->nMemberId & (~SFX_METRIC_ITEM); if( eMapUnit == SFX_MAPUNIT_100TH_MM ) |