diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 16:41:34 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 09:24:53 +0100 |
commit | 2deb0a2651f55c401bd9b84c9373e4140bbdb09b (patch) | |
tree | 27071643a96de2478f8a3ee9a9908dc68ab8d215 /chart2/source/controller | |
parent | bec28033628473bdfde0c5a9e1af522613968051 (diff) |
coverity#704564 Unchecked dynamic_cast
Change-Id: I2dfdc5e1e852011b532b484e566896133208ee86
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/main/DrawCommandDispatch.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/DrawCommandDispatch.cxx b/chart2/source/controller/main/DrawCommandDispatch.cxx index 4f3f01afeb3e..77fd39309d47 100644 --- a/chart2/source/controller/main/DrawCommandDispatch.cxx +++ b/chart2/source/controller/main/DrawCommandDispatch.cxx @@ -497,7 +497,7 @@ SdrObject* DrawCommandDispatch::createDefaultObject( const sal_uInt16 nID ) basegfx::B2DPoint( aRect.Right(), aRect.Top() ) ); basegfx::B2DPolyPolygon aPoly; aPoly.append( aInnerPoly ); - ( dynamic_cast< SdrPathObj* >( pObj ) )->SetPathPoly( aPoly ); + dynamic_cast<SdrPathObj&>(*pObj).SetPathPoly(aPoly); } } break; |