Browse Source

Fix build error.

Bind() and Unbind() require class specification when passing a pointer to a
class member.
pull/7/merge
Wayne Stambaugh 8 years ago
parent
commit
0e41632105
  1. 4
      eeschema/libeditframe.cpp
  2. 4
      eeschema/schframe.cpp

4
eeschema/libeditframe.cpp

@ -294,7 +294,7 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
Raise();
Show( true );
Bind( wxEVT_COMMAND_MENU_SELECTED, &OnEditSymbolLibTable, this,
Bind( wxEVT_COMMAND_MENU_SELECTED, &LIB_EDIT_FRAME::OnEditSymbolLibTable, this,
ID_EDIT_SYM_LIB_TABLE );
wxCommandEvent evt( wxEVT_COMMAND_MENU_SELECTED, ID_ZOOM_PAGE );
@ -304,7 +304,7 @@ LIB_EDIT_FRAME::LIB_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
LIB_EDIT_FRAME::~LIB_EDIT_FRAME()
{
Unbind( wxEVT_COMMAND_MENU_SELECTED, &OnEditSymbolLibTable, this,
Unbind( wxEVT_COMMAND_MENU_SELECTED, &LIB_EDIT_FRAME::OnEditSymbolLibTable, this,
ID_EDIT_SYM_LIB_TABLE );
m_drawItem = m_lastDrawItem = NULL;

4
eeschema/schframe.cpp

@ -437,14 +437,14 @@ SCH_EDIT_FRAME::SCH_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ):
// Net list generator
DefaultExecFlags();
Bind( wxEVT_COMMAND_MENU_SELECTED, &OnEditSymbolLibTable, this,
Bind( wxEVT_COMMAND_MENU_SELECTED, &SCH_EDIT_FRAME::OnEditSymbolLibTable, this,
ID_EDIT_SYM_LIB_TABLE );
}
SCH_EDIT_FRAME::~SCH_EDIT_FRAME()
{
Unbind( wxEVT_COMMAND_MENU_SELECTED, &OnEditSymbolLibTable, this,
Unbind( wxEVT_COMMAND_MENU_SELECTED, &SCH_EDIT_FRAME::OnEditSymbolLibTable, this,
ID_EDIT_SYM_LIB_TABLE );
delete m_item_to_repeat; // we own the cloned object, see this->SetRepeatItem()

Loading…
Cancel
Save