X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b0d48b32a24f32acca92a066407d4a697c16e18..742ff1e12fe845a79db772285dea63a227d867b7:/src/common/menucmn.cpp?ds=sidebyside diff --git a/src/common/menucmn.cpp b/src/common/menucmn.cpp index 65459efdd3..5d91787665 100644 --- a/src/common/menucmn.cpp +++ b/src/common/menucmn.cpp @@ -125,7 +125,10 @@ void wxMenuBase::Init(long style) m_style = style; m_clientData = (void *)NULL; m_eventHandler = this; + +#if wxUSE_MENU_CALLBACK m_callback = (wxFunction) NULL; +#endif // wxUSE_MENU_CALLBACK } wxMenuBase::~wxMenuBase()