diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-06-03 21:12:10 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-06-05 21:18:07 +0200 |
commit | ae75b0512fd7042d2f12ca66b136564bdf84b37a (patch) | |
tree | c0735f41d70dbc2aeca11545482cb166a0abdaab /reportdesign | |
parent | c03009c69deffbc9d19e0f67f9a0e114298e55c4 (diff) |
Improved loplugin:cstylecast to reference types: reportdesign
Change-Id: I63c951b4021db46d9cf6432dd56904a1b01a6c47
Diffstat (limited to 'reportdesign')
-rw-r--r-- | reportdesign/source/ui/report/ViewsWindow.cxx | 4 | ||||
-rw-r--r-- | reportdesign/source/ui/report/dlgedfunc.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx index 67be39d52790..4547ce83814e 100644 --- a/reportdesign/source/ui/report/ViewsWindow.cxx +++ b/reportdesign/source/ui/report/ViewsWindow.cxx @@ -1604,7 +1604,7 @@ void OViewsWindow::handleKey(const vcl::KeyCode& _rCode) // switch snapping off if ( !bWasNoSnap ) - ((SdrDragStat&)rDragStat).SetNoSnap(); + const_cast<SdrDragStat&>(rDragStat).SetNoSnap(); if ( bWasSnapEnabled ) rView.SetSnapEnabled( false ); @@ -1644,7 +1644,7 @@ void OViewsWindow::handleKey(const vcl::KeyCode& _rCode) // restore snap if ( !bWasNoSnap ) - ((SdrDragStat&)rDragStat).SetNoSnap( bWasNoSnap ); + const_cast<SdrDragStat&>(rDragStat).SetNoSnap( bWasNoSnap ); if ( bWasSnapEnabled ) rView.SetSnapEnabled( bWasSnapEnabled ); } diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx index 8feaed9150c0..a3bc7e3c3a3a 100644 --- a/reportdesign/source/ui/report/dlgedfunc.cxx +++ b/reportdesign/source/ui/report/dlgedfunc.cxx @@ -284,7 +284,7 @@ bool DlgEdFunc::handleKeyEvent(const KeyEvent& _rEvent) const SdrHdlList& rHdlList = m_rView.GetHdlList(); SdrHdl* pHdl = rHdlList.GetFocusHdl(); if ( pHdl ) - ((SdrHdlList&)rHdlList).ResetFocusHdl(); + const_cast<SdrHdlList&>(rHdlList).ResetFocusHdl(); else m_pParent->getSectionWindow()->getViewsWindow()->unmarkAllObjects(nullptr); @@ -318,7 +318,7 @@ bool DlgEdFunc::handleKeyEvent(const KeyEvent& _rEvent) { // selected handle const SdrHdlList& rHdlList = m_rView.GetHdlList(); - ((SdrHdlList&)rHdlList).TravelFocusHdl( !rCode.IsShift() ); + const_cast<SdrHdlList&>(rHdlList).TravelFocusHdl( !rCode.IsShift() ); // guarantee visibility of focused handle SdrHdl* pHdl = rHdlList.GetFocusHdl(); |