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

coverity#704564 Unchecked dynamic_cast

Change-Id: I2dfdc5e1e852011b532b484e566896133208ee86
üst bec28033
...@@ -497,7 +497,7 @@ SdrObject* DrawCommandDispatch::createDefaultObject( const sal_uInt16 nID ) ...@@ -497,7 +497,7 @@ SdrObject* DrawCommandDispatch::createDefaultObject( const sal_uInt16 nID )
basegfx::B2DPoint( aRect.Right(), aRect.Top() ) ); basegfx::B2DPoint( aRect.Right(), aRect.Top() ) );
basegfx::B2DPolyPolygon aPoly; basegfx::B2DPolyPolygon aPoly;
aPoly.append( aInnerPoly ); aPoly.append( aInnerPoly );
( dynamic_cast< SdrPathObj* >( pObj ) )->SetPathPoly( aPoly ); dynamic_cast<SdrPathObj&>(*pObj).SetPathPoly(aPoly);
} }
} }
break; 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