pcbnew: Clean up switch statement in launcher
This commit is contained in:
parent
0328f3e33b
commit
e47c9ccc0b
|
@ -99,18 +99,12 @@ static struct IFACE : public KIFACE_I
|
||||||
}
|
}
|
||||||
|
|
||||||
case FRAME_PCB_MODULE_EDITOR:
|
case FRAME_PCB_MODULE_EDITOR:
|
||||||
|
return new FOOTPRINT_EDIT_FRAME( aKiway, aParent,
|
||||||
|
EDA_DRAW_PANEL_GAL::GAL_TYPE_UNKNOWN );
|
||||||
|
|
||||||
case FRAME_PCB_MODULE_VIEWER:
|
case FRAME_PCB_MODULE_VIEWER:
|
||||||
case FRAME_PCB_MODULE_VIEWER_MODAL:
|
case FRAME_PCB_MODULE_VIEWER_MODAL:
|
||||||
{
|
return new FOOTPRINT_VIEWER_FRAME( aKiway, aParent, FRAME_T( aClassId ) );
|
||||||
switch( aClassId )
|
|
||||||
{
|
|
||||||
case FRAME_PCB_MODULE_EDITOR:
|
|
||||||
return new FOOTPRINT_EDIT_FRAME( aKiway, aParent, EDA_DRAW_PANEL_GAL::GAL_TYPE_UNKNOWN );
|
|
||||||
case FRAME_PCB_MODULE_VIEWER:
|
|
||||||
case FRAME_PCB_MODULE_VIEWER_MODAL:
|
|
||||||
return new FOOTPRINT_VIEWER_FRAME( aKiway, aParent, FRAME_T( aClassId ) );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
case FRAME_PCB_FOOTPRINT_WIZARD:
|
case FRAME_PCB_FOOTPRINT_WIZARD:
|
||||||
return new FOOTPRINT_WIZARD_FRAME( aKiway, aParent, FRAME_T( aClassId ) );
|
return new FOOTPRINT_WIZARD_FRAME( aKiway, aParent, FRAME_T( aClassId ) );
|
||||||
|
|
Loading…
Reference in New Issue