summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/viewfun7.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-27 14:18:59 +0200
committerNoel Grandin <noel@peralex.com>2014-10-28 08:11:26 +0200
commit282e954477f904524ca192256c4e33ab0585e2f6 (patch)
treee0971d31fda3c2e8b1e4b806831534547e18cab1 /sc/source/ui/view/viewfun7.cxx
parent223a5b75457e38d70db63f3992ff601c3e381639 (diff)
loplugin: cstylecast
Change-Id: I42cd0be78478536322357ca7a03cf30e624b1afc
Diffstat (limited to 'sc/source/ui/view/viewfun7.cxx')
-rw-r--r--sc/source/ui/view/viewfun7.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/view/viewfun7.cxx b/sc/source/ui/view/viewfun7.cxx
index b937eb3bf121..77701c5dad47 100644
--- a/sc/source/ui/view/viewfun7.cxx
+++ b/sc/source/ui/view/viewfun7.cxx
@@ -164,7 +164,7 @@ void ScViewFunc::PasteDraw( const Point& rLogicPos, SdrModel* pModel,
// copy graphics within the same model - always needs new name
if ( pNeuObj->ISA(SdrGrafObj) && !bPasteIsMove )
- pNeuObj->SetName(((ScDrawLayer*)pDrawModel)->GetNewGraphicName());
+ pNeuObj->SetName(static_cast<ScDrawLayer*>(pDrawModel)->GetNewGraphicName());
if (nDiffX!=0 || nDiffY!=0)
pNeuObj->NbcMove(Size(nDiffX,nDiffY));
@@ -437,7 +437,7 @@ bool ScViewFunc::PasteGraphic( const Point& rPos, const Graphic& rGraphic,
// path was the name of the graphic in history
- ScDrawLayer* pLayer = (ScDrawLayer*) pScDrawView->GetModel();
+ ScDrawLayer* pLayer = static_cast<ScDrawLayer*>( pScDrawView->GetModel() );
OUString aName = pLayer->GetNewGraphicName(); // "Graphics"
pGrafObj->SetName(aName);