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