summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unoshap4.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-17 12:22:22 +0200
committerNoel Grandin <noel@peralex.com>2014-10-20 13:33:57 +0200
commitb0509439d9fa664be8f94b557d83ea3a2891c31f (patch)
treee801f2a265b11a8abfb665f78683fc4a83ef1616 /svx/source/unodraw/unoshap4.cxx
parent8c8d6f08491479c23998cbfb96201f12acbd873a (diff)
loplugin: cstylecast
Change-Id: I2cb764db97469654f977de63e273874d43745bf8
Diffstat (limited to 'svx/source/unodraw/unoshap4.cxx')
-rw-r--r--svx/source/unodraw/unoshap4.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx
index fc3d1fde5d8c..bbbc02e9c030 100644
--- a/svx/source/unodraw/unoshap4.cxx
+++ b/svx/source/unodraw/unoshap4.cxx
@@ -99,7 +99,7 @@ bool SvxOle2Shape::setPropertyValueImpl( const OUString& rName, const SfxItemPro
if( (rValue >>= aVisArea) && mpObj->ISA(SdrOle2Obj))
{
Size aTmp( aVisArea.X + aVisArea.Width, aVisArea.Y + aVisArea.Height );
- uno::Reference < embed::XEmbeddedObject > xObj = ((SdrOle2Obj*)mpObj.get())->GetObjRef();
+ uno::Reference < embed::XEmbeddedObject > xObj = static_cast<SdrOle2Obj*>(mpObj.get())->GetObjRef();
if( xObj.is() )
{
try
@@ -269,7 +269,7 @@ bool SvxOle2Shape::getPropertyValueImpl( const OUString& rName, const SfxItemPro
if( mpObj->ISA(SdrOle2Obj))
{
MapMode aMapMode( MAP_100TH_MM ); // the API uses this map mode
- Size aTmp = ((SdrOle2Obj*)mpObj.get())->GetOrigObjSize( &aMapMode ); // get the size in the requested map mode
+ Size aTmp = static_cast<SdrOle2Obj*>(mpObj.get())->GetOrigObjSize( &aMapMode ); // get the size in the requested map mode
aVisArea = awt::Rectangle( 0, 0, aTmp.Width(), aTmp.Height() );
}