Variable X is reassigned a value before the old one has been used

Change-Id: I196145550e5f0e53f9498ddd127fec588be064b9
This commit is contained in:
Julien Nabet
2012-10-28 09:45:59 +01:00
parent bf7240d067
commit 316a0487dc
2 changed files with 2 additions and 4 deletions

View File

@@ -1258,10 +1258,9 @@ sal_uLong OutlinerView::Read( SvStream& rInput, const String& rBaseURL, EETextF
{
if ( eFormat == EE_FORMAT_BIN )
{
sal_uInt16 nDepth = 0;
const SfxItemSet& rAttrs = pOwner->GetParaAttribs( n );
const SfxInt16Item& rLevel = (const SfxInt16Item&) rAttrs.Get( EE_PARA_OUTLLEVEL );
nDepth = rLevel.GetValue();
sal_uInt16 nDepth = rLevel.GetValue();
pOwner->ImplInitDepth( n, nDepth, sal_False );
}

View File

@@ -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 )