summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:47 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-06-08 16:28:47 +0200
commitb2c8ea3a0253ce87f1b292fbb19b461a53c14912 (patch)
tree853cc34d4ced72c029f9b5bc4b3077d8b1944412 /sw/source/core/unocore/unodraw.cxx
parentbc2becdf1a12a1020584ee808c965e41f1837383 (diff)
loplugin:cstylecast: deal with remaining pointer casts
Change-Id: I8d27ae80d209159690182ab91e272cf00e9f863d
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index 42a8013ee4c5..d1b01a48f8cd 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -286,7 +286,7 @@ uno::Reference< uno::XInterface > SwFmDrawPage::GetInterface( SdrObject* pObj
SwXShape* pxShape = SwIterator<SwXShape,SwFormat>( *pFormat ).First();
if(pxShape)
{
- xShape = *(cppu::OWeakObject*)pxShape;
+ xShape = *static_cast<cppu::OWeakObject*>(pxShape);
}
else
xShape = pObj->getUnoShape();
@@ -861,7 +861,7 @@ SwFmDrawPage* SwXDrawPage::GetSvxPage()
xPageAgg = *static_cast<uno::Reference< uno::XAggregation > const *>(aAgg.getValue());
}
if( xPageAgg.is() )
- xPageAgg->setDelegator( (cppu::OWeakObject*)this );
+ xPageAgg->setDelegator( static_cast<cppu::OWeakObject*>(this) );
}
return pDrawPage;
}
@@ -949,7 +949,7 @@ SwXShape::SwXShape(uno::Reference< uno::XInterface > & xShape) :
xShape = 0;
m_refCount++;
if( xShapeAgg.is() )
- xShapeAgg->setDelegator( (cppu::OWeakObject*)this );
+ xShapeAgg->setDelegator( static_cast<cppu::OWeakObject*>(this) );
m_refCount--;
uno::Reference< lang::XUnoTunnel > xShapeTunnel(xShapeAgg, uno::UNO_QUERY);
@@ -2139,7 +2139,7 @@ void SwXShape::attach(const uno::Reference< text::XTextRange > & xTextRange)
uno::Any aPos;
aPos <<= xTextRange;
setPropertyValue("TextRange", aPos);
- uno::Reference< drawing::XShape > xTemp( (cppu::OWeakObject*) this, uno::UNO_QUERY );
+ uno::Reference< drawing::XShape > xTemp( static_cast<cppu::OWeakObject*>(this), uno::UNO_QUERY );
xDP->add( xTemp );
}
}