summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unodraw.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-25 15:40:07 +0200
committerNoel Grandin <noel@peralex.com>2014-11-26 11:46:38 +0200
commitb61ca31e53f0a56667a5e00e966681be29ea7bf7 (patch)
tree812fe8e682bbfae131bd0698a35ddf513795c7bd /sw/source/core/unocore/unodraw.cxx
parent47e395cad525385d4a8afdd359bcee2b6380fa22 (diff)
loplugin: cstylecast
Change-Id: I19be8b6df10515e195a4d3ecb8f003c85d2349c2
Diffstat (limited to 'sw/source/core/unocore/unodraw.cxx')
-rw-r--r--sw/source/core/unocore/unodraw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/unocore/unodraw.cxx b/sw/source/core/unocore/unodraw.cxx
index aca3920b78aa..0482df5324b0 100644
--- a/sw/source/core/unocore/unodraw.cxx
+++ b/sw/source/core/unocore/unodraw.cxx
@@ -307,7 +307,7 @@ uno::Reference< drawing::XShape > SwFmDrawPage::_CreateShape( SdrObject *pObj )
uno::Reference< drawing::XShape > xRet;
if(pObj->ISA(SwVirtFlyDrawObj) || pObj->GetObjInventor() == SWGInventor)
{
- SwFlyDrawContact* pFlyContact = (SwFlyDrawContact*)pObj->GetUserCall();
+ SwFlyDrawContact* pFlyContact = static_cast<SwFlyDrawContact*>(pObj->GetUserCall());
if(pFlyContact)
{
SwFrmFmt* pFlyFmt = pFlyContact->GetFmt();
@@ -1124,7 +1124,7 @@ void SwXShape::setPropertyValue(const OUString& rPropertyName, const uno::Any& a
SfxItemSet aItemSet( pDoc->GetAttrPool(),
RES_FRMATR_BEGIN, RES_FRMATR_END - 1 );
aItemSet.SetParent(&pFmt->GetAttrSet());
- SwFmtAnchor aAnchor = (const SwFmtAnchor&)aItemSet.Get(pEntry->nWID);
+ SwFmtAnchor aAnchor = static_cast<const SwFmtAnchor&>(aItemSet.Get(pEntry->nWID));
SwPosition aPos(*pFrame->GetFrmFmt()->GetCntnt().GetCntntIdx());
aAnchor.SetAnchor(&aPos);
aAnchor.SetType(FLY_AT_FLY);