Kaydet (Commit) 75fe8129 authored tarafından Julien Nabet's avatar Julien Nabet

cppcheck: Variable nActNumLvl reassigned before old value used

Change-Id: I6d745b80b0d72033be12d8f78ebdbcdabeabd579
üst fa82c9a1
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment