diff --git a/include/wx/menuitem.h b/include/wx/menuitem.h index 8c4f990add..353c28a471 100644 --- a/include/wx/menuitem.h +++ b/include/wx/menuitem.h @@ -131,7 +131,7 @@ public: // return vector of extra accels. Implementation only. const wxVector& GetExtraAccels() const { return m_extraAccels; } - virtual void ClearExtraAccels() { m_extraAccels.clear(); } + virtual void ClearExtraAccels(); #endif // wxUSE_ACCEL #if WXWIN_COMPATIBILITY_2_8 diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 03dbe8fd02..2694c12ad0 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -301,6 +301,11 @@ void wxMenuItemBase::AddExtraAccel(const wxAcceleratorEntry& accel) m_extraAccels.push_back(accel); } +void wxMenuItemBase::ClearExtraAccels() +{ + m_extraAccels.clear(); +} + #endif // wxUSE_ACCEL void wxMenuItemBase::SetItemLabel(const wxString& str)