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

coverity#735971 Unchecked dynamic_cast

Change-Id: Iefd64baa09c3f6bfaf1cc43483ae1451e5b2c6ad
üst 7c7d42b6
......@@ -822,14 +822,13 @@ bool SvXMLImportItemMapper::PutXMLValue(
case RES_HORI_ORIENT:
{
SwFormatHoriOrient* pHoriOrient = dynamic_cast<SwFormatHoriOrient*>( &rItem );
OSL_ENSURE( pHoriOrient != NULL, "Wrong Which-ID" );
SwFormatHoriOrient& rHoriOrient = dynamic_cast<SwFormatHoriOrient&>(rItem);
sal_uInt16 nValue;
bOk = SvXMLUnitConverter::convertEnum( nValue, rValue,
aXMLTableAlignMap );
if( bOk )
pHoriOrient->SetHoriOrient( nValue );
rHoriOrient.SetHoriOrient( nValue );
}
break;
......
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