diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-01 10:18:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-02 09:32:10 +0200 |
commit | cf16234a23a716fe98adf32dd5b56d48be242c99 (patch) | |
tree | 71bde1012375f19303809d233f02c00274854559 /sw/source/uibase/uiview/viewdraw.cxx | |
parent | aeb6c0ed64a76c722158bf91313b42561cd66071 (diff) |
loplugin: cstylecast
Change-Id: If31b41296a91c6a6ac990494e88ab7b47240a823
Diffstat (limited to 'sw/source/uibase/uiview/viewdraw.cxx')
-rw-r--r-- | sw/source/uibase/uiview/viewdraw.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx index 1decd9275a92..d3e3705206a4 100644 --- a/sw/source/uibase/uiview/viewdraw.cxx +++ b/sw/source/uibase/uiview/viewdraw.cxx @@ -219,7 +219,7 @@ void SwView::ExecDraw(SfxRequest& rReq) SwDrawBase* pFuncPtr = GetDrawFuncPtr(); if( pFuncPtr && pFuncPtr->GetSlotId() == SID_DRAW_CS_ID ) { - ConstCustomShape* pConstCustomShape = (ConstCustomShape*)(pFuncPtr); + ConstCustomShape* pConstCustomShape = static_cast<ConstCustomShape*>(pFuncPtr); OUString aNew = ConstCustomShape::GetShapeTypeFromRequest( rReq ); OUString aOld = pConstCustomShape->GetShapeType(); if( aNew == aOld ) @@ -563,7 +563,7 @@ bool SwView::BeginTextEdit(SdrObject* pObj, SdrPageView* pPV, vcl::Window* pWin, if(pObj->ISA(SwDrawVirtObj)) { - SwDrawVirtObj* pVirtObj = (SwDrawVirtObj*)pObj; + SwDrawVirtObj* pVirtObj = static_cast<SwDrawVirtObj*>(pObj); pToBeActivated = &const_cast<SdrObject&>(pVirtObj->GetReferencedObj()); aNewTextEditOffset = pVirtObj->GetOffset(); } |