From acb923263e3a15f9cd8fda46d28a749c7496d113 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 3 Jun 2017 21:08:57 +0200 Subject: Improved loplugin:cstylecast to reference types: svx Change-Id: Idb58ca86ea6c0593283c455880ca7c0e99983c60 --- svx/source/dialog/graphctl.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'svx/source/dialog/graphctl.cxx') diff --git a/svx/source/dialog/graphctl.cxx b/svx/source/dialog/graphctl.cxx index cdf0e5d05003..b65d75b0992a 100644 --- a/svx/source/dialog/graphctl.cxx +++ b/svx/source/dialog/graphctl.cxx @@ -332,7 +332,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) if(pHdl) { - ((SdrHdlList&)rHdlList).ResetFocusHdl(); + const_cast(rHdlList).ResetFocusHdl(); bGrabFocusToFirstControl = false; } } @@ -367,7 +367,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) const SdrHdlList& rHdlList = pView->GetHdlList(); bool bForward(!aCode.IsShift()); - ((SdrHdlList&)rHdlList).TravelFocusHdl(bForward); + const_cast(rHdlList).TravelFocusHdl(bForward); bProc = true; } @@ -514,7 +514,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) // switch snapping off if(!bWasNoSnap) - ((SdrDragStat&)rDragStat).SetNoSnap(); + const_cast(rDragStat).SetNoSnap(); if(bWasSnapEnabled) pView->SetSnapEnabled(false); @@ -523,7 +523,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) // restore snap if(!bWasNoSnap) - ((SdrDragStat&)rDragStat).SetNoSnap(bWasNoSnap); + const_cast(rDragStat).SetNoSnap(bWasNoSnap); if(bWasSnapEnabled) pView->SetSnapEnabled(bWasSnapEnabled); } @@ -585,7 +585,7 @@ void GraphCtrl::KeyInput( const KeyEvent& rKEvt ) if(pNewOne) { - ((SdrHdlList&)rHdlList).SetFocusHdl(pNewOne); + const_cast(rHdlList).SetFocusHdl(pNewOne); } } -- cgit