diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-09-27 23:13:01 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-09-27 23:13:01 +0200 |
commit | 75fe8129a6355e2f56e40ae2be01822d8ca015ab (patch) | |
tree | bfebe834b68d81e3c2d97f337b23303213f162ba /sd/source/ui/view/drviewsf.cxx | |
parent | fa82c9a1d1bfda52905e93217c7d8b6d8a2ad014 (diff) |
cppcheck: Variable nActNumLvl reassigned before old value used
Change-Id: I6d745b80b0d72033be12d8f78ebdbcdabeabd579
Diffstat (limited to 'sd/source/ui/view/drviewsf.cxx')
-rw-r--r-- | sd/source/ui/view/drviewsf.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sd/source/ui/view/drviewsf.cxx b/sd/source/ui/view/drviewsf.cxx index 5667740e39e0..35ef90062287 100644 --- a/sd/source/ui/view/drviewsf.cxx +++ b/sd/source/ui/view/drviewsf.cxx @@ -564,16 +564,13 @@ void DrawViewShell::GetAttrState( SfxItemSet& rSet ) aNewAttr.Put( aEditAttr, sal_False ); - sal_uInt16 nActNumLvl = (sal_uInt16)0xFFFF; SvxNumRule* pNumRule = NULL; const SfxPoolItem* pTmpItem=NULL; sal_uInt16 nNumItemId = SID_ATTR_NUMBERING_RULE; - //if(SFX_ITEM_SET == aNewAttr.GetItemState(SID_PARAM_CUR_NUM_LEVEL, sal_False, &pTmpItem)) - // nActNumLvl = ((const SfxUInt16Item*)pTmpItem)->GetValue(); rSet.Put(SfxUInt16Item(FN_NUM_NUM_RULE_INDEX,DEFAULT_NONE)); rSet.Put(SfxUInt16Item(FN_BUL_NUM_RULE_INDEX,DEFAULT_NONE)); - nActNumLvl = mpDrawView->GetSelectionLevel(); + sal_uInt16 nActNumLvl = mpDrawView->GetSelectionLevel(); pTmpItem=GetNumBulletItem(aNewAttr, nNumItemId); if (pTmpItem) |