summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-10-28 09:45:59 +0100
committerJulien Nabet <serval2412@yahoo.fr>2012-10-28 09:46:30 +0100
commit316a0487dcf9bb15db159552e70dbfc43b785618 (patch)
treece8a0a59769d4d212da4d8a7854e44bef47a5884 /editeng
parentbf7240d0676b4350892e01fa8c1ba5eb6a3913c6 (diff)
Variable X is reassigned a value before the old one has been used
Change-Id: I196145550e5f0e53f9498ddd127fec588be064b9
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/outliner/outlvw.cxx3
-rw-r--r--editeng/source/uno/unoipset.cxx3
2 files changed, 2 insertions, 4 deletions
diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx
index 68922aa38743..714f350271b5 100644
--- a/editeng/source/outliner/outlvw.cxx
+++ b/editeng/source/outliner/outlvw.cxx
@@ -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 );
}
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 )