Kaydet (Commit) 3e423ebe authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209549 Unchecked dynamic_cast

Change-Id: I118771b78d83441202c15d3b08b9055ba5e63623
üst 93e09221
...@@ -3506,7 +3506,8 @@ namespace { ...@@ -3506,7 +3506,8 @@ namespace {
sOldNumRule = pFormerNumRuleAtTxtNode->GetName(); sOldNumRule = pFormerNumRuleAtTxtNode->GetName();
} }
if ( dynamic_cast<const SwAttrSetChg*>(pNewValue)->GetChgSet()->GetItemState( RES_PARATR_NUMRULE, false, &pItem ) == const SwAttrSetChg* pSet = dynamic_cast<const SwAttrSetChg*>(pNewValue);
if ( pSet && pSet->GetChgSet()->GetItemState( RES_PARATR_NUMRULE, false, &pItem ) ==
SFX_ITEM_SET ) SFX_ITEM_SET )
{ {
// #i70748# // #i70748#
......
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