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:
parent
d281f051ed
commit
e687d14903
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue