Clang-alike lightweight RTTI for pcbnew + type casting cleanup.
This commit is contained in:
committed by
Maciej Suminski
parent
7a110d0ce3
commit
4121c27269
+1
-1
@@ -62,7 +62,7 @@ static void Abort_Create_Track( EDA_DRAW_PANEL* Panel, wxDC* DC )
|
||||
{
|
||||
PCB_EDIT_FRAME* frame = (PCB_EDIT_FRAME*) Panel->GetParent();
|
||||
BOARD* pcb = frame->GetBoard();
|
||||
TRACK* track = dynamic_cast<TRACK*>( frame->GetCurItem() );
|
||||
TRACK* track = dyn_cast<TRACK*>( frame->GetCurItem() );
|
||||
|
||||
if( track )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user