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

coverity#705055 Unchecked dynamic_cast

Change-Id: I84456e587897fd56626a823ef99f15db227f894f
üst e5431ed4
......@@ -2605,8 +2605,8 @@ sal_uLong GDIMetaFile::GetChecksum() const
case META_CLIPREGION_ACTION :
{
MetaClipRegionAction* pAct = dynamic_cast< MetaClipRegionAction* >(pAction);
const Region& rRegion = pAct->GetRegion();
MetaClipRegionAction& rAct = dynamic_cast<MetaClipRegionAction&>(*pAction);
const Region& rRegion = rAct.GetRegion();
if(rRegion.HasPolyPolygonOrB2DPolyPolygon())
{
......@@ -2657,7 +2657,7 @@ sal_uLong GDIMetaFile::GetChecksum() const
}
}
sal_uInt8 tmp = (sal_uInt8)pAct->IsClipping();
sal_uInt8 tmp = (sal_uInt8)rAct.IsClipping();
nCrc = rtl_crc32(nCrc, &tmp, 1);
}
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