Kaydet (Commit) 658f218b authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#735970 Unchecked dynamic_cast

Change-Id: I05a9fdd43ba821a9071728ef2be72d3a485a8a09
üst e8a93a14
......@@ -955,17 +955,16 @@ bool SvXMLImportItemMapper::PutXMLValue(
case RES_COLLAPSING_BORDERS:
{
SfxBoolItem* pBorders = dynamic_cast<SfxBoolItem*>( &rItem );
OSL_ENSURE( pBorders != NULL, "Wrong Which-ID" );
SfxBoolItem& rBorders = dynamic_cast<SfxBoolItem&>(rItem);
if( IsXMLToken( rValue, XML_COLLAPSING ) )
{
pBorders->SetValue( true );
rBorders.SetValue(true);
bOk = true;
}
else if( IsXMLToken( rValue, XML_SEPARATING ) )
{
pBorders->SetValue( false );
rBorders.SetValue(false);
bOk = true;
}
else
......
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