From 2563518f3ae2f0a15ba54495d7d4327391aa535f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Mon, 10 Jan 2022 14:03:30 +0000 Subject: [PATCH] Fix compile error. --- pcbnew/footprint_edit_frame.cpp | 4 ++-- pcbnew/footprint_edit_frame.h | 4 ++-- pcbnew/footprint_editor_utils.cpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pcbnew/footprint_edit_frame.cpp b/pcbnew/footprint_edit_frame.cpp index d7a00c9f9a..e0ab7f3b37 100644 --- a/pcbnew/footprint_edit_frame.cpp +++ b/pcbnew/footprint_edit_frame.cpp @@ -84,8 +84,8 @@ BEGIN_EVENT_TABLE( FOOTPRINT_EDIT_FRAME, PCB_BASE_FRAME ) EVT_TOOL( ID_FPEDIT_SAVE_PNG, FOOTPRINT_EDIT_FRAME::OnSaveFootprintAsPng ) - EVT_TOOL( ID_LOAD_FOOTPRINT_FROM_BOARD, FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard ) - EVT_TOOL( ID_ADD_FOOTPRINT_TO_BOARD, FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard ) + EVT_TOOL( ID_LOAD_FOOTPRINT_FROM_BOARD, FOOTPRINT_EDIT_FRAME::OnLoadFootprintFromBoard ) + EVT_TOOL( ID_ADD_FOOTPRINT_TO_BOARD, FOOTPRINT_EDIT_FRAME::OnSaveFootprintToBoard ) // Horizontal toolbar EVT_MENU( ID_GRID_SETTINGS, FOOTPRINT_EDIT_FRAME::OnGridSettings ) diff --git a/pcbnew/footprint_edit_frame.h b/pcbnew/footprint_edit_frame.h index 0d7b24956a..c9db65728e 100644 --- a/pcbnew/footprint_edit_frame.h +++ b/pcbnew/footprint_edit_frame.h @@ -157,9 +157,9 @@ public: /** * Called from the main toolbar to load a footprint from board mainly to edit it. */ - void LoadFootprintFromBoard( wxCommandEvent& event ); + void OnLoadFootprintFromBoard( wxCommandEvent& event ); - void SaveFootprintToBoard( wxCommandEvent& event ); + void OnSaveFootprintToBoard( wxCommandEvent& event ); void LoadFootprintFromLibrary( LIB_ID aFPID ); diff --git a/pcbnew/footprint_editor_utils.cpp b/pcbnew/footprint_editor_utils.cpp index dec8f4efe6..6b1154fb20 100644 --- a/pcbnew/footprint_editor_utils.cpp +++ b/pcbnew/footprint_editor_utils.cpp @@ -43,7 +43,7 @@ using namespace std::placeholders; -void FOOTPRINT_EDIT_FRAME::LoadFootprintFromBoard( wxCommandEvent& event ) +void FOOTPRINT_EDIT_FRAME::OnLoadFootprintFromBoard( wxCommandEvent& event ) { LoadFootprintFromBoard( nullptr ); } @@ -127,7 +127,7 @@ void FOOTPRINT_EDIT_FRAME::SelectLayer( wxCommandEvent& event ) } -void FOOTPRINT_EDIT_FRAME::SaveFootprintToBoard( wxCommandEvent& event ) +void FOOTPRINT_EDIT_FRAME::OnSaveFootprintToBoard( wxCommandEvent& event ) { SaveFootprintToBoard( true ); }