Clang-alike lightweight RTTI for pcbnew + type casting cleanup.

This commit is contained in:
Tomasz Wlostowski
2014-06-06 11:44:21 +02:00
committed by Maciej Suminski
parent 7a110d0ce3
commit 4121c27269
19 changed files with 297 additions and 168 deletions
+1 -1
View File
@@ -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 )
{