summaryrefslogtreecommitdiff
path: root/svx/source/dialog/graphctl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-03 21:08:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-05 21:18:02 +0200
commitacb923263e3a15f9cd8fda46d28a749c7496d113 (patch)
tree1f03f032b240ed5dba3fa09a98035ee9ec7e2f36 /svx/source/dialog/graphctl.cxx
parent6b95231a2c6f9ae6ec544f9281c4ddc6d665c9dc (diff)
Improved loplugin:cstylecast to reference types: svx
Change-Id: Idb58ca86ea6c0593283c455880ca7c0e99983c60
Diffstat (limited to 'svx/source/dialog/graphctl.cxx')
-rw-r--r--svx/source/dialog/graphctl.cxx10
1 files changed, 5 insertions, 5 deletions
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<SdrHdlList&>(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<SdrHdlList&>(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<SdrDragStat&>(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<SdrDragStat&>(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<SdrHdlList&>(rHdlList).SetFocusHdl(pNewOne);
}
}