Remove useless const_casts

Both versions of EDA_DRAW_FRAME::isBusy have a useless const_cast.

GetScreen() const returns a non-const SCH_SCREEN already, it doesn't
need to be cast, and it's stored in const SCH_SCREEN anyway.
This commit is contained in:
John Beard 2019-04-23 17:39:34 +01:00
parent d281f051ed
commit e687d14903
2 changed files with 2 additions and 2 deletions

View File

@ -1176,7 +1176,7 @@ bool EDA_DRAW_FRAME::GeneralControlKeyMovement( int aHotKey, wxPoint *aPos, bool
bool EDA_DRAW_FRAME::isBusy() const
{
const BASE_SCREEN* screen = const_cast< BASE_SCREEN* >( GetScreen() );
const BASE_SCREEN* screen = GetScreen();
if( !screen )
return false;

View File

@ -1532,7 +1532,7 @@ bool EDA_DRAW_FRAME::GeneralControlKeyMovement( int aHotKey, wxPoint *aPos, bool
bool EDA_DRAW_FRAME::isBusy() const
{
const BASE_SCREEN* screen = const_cast< BASE_SCREEN* >( GetScreen() );
const BASE_SCREEN* screen = GetScreen();
if( !screen )
return false;