Improved loplugin:cstylecast to reference types: reportdesign
Change-Id: I63c951b4021db46d9cf6432dd56904a1b01a6c47
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user