Simplify forcing action parameters to have a specific type

This commit is contained in:
Ian McInerney
2023-06-20 21:52:50 +01:00
parent 07cc85e76c
commit 3718ecfcd8
6 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ GRID_MENU::GRID_MENU( EDA_DRAW_FRAME* aParent ) :
OPT_TOOL_EVENT GRID_MENU::eventHandler( const wxMenuEvent& aEvent )
{
OPT_TOOL_EVENT event( ACTIONS::gridPreset.MakeEvent() );
event->SetParameter( aEvent.GetId() - ID_POPUP_GRID_START );
event->SetParameter<int>( aEvent.GetId() - ID_POPUP_GRID_START );
return event;
}