From: Vadim Zeitlin Date: Mon, 12 Jan 2009 16:53:07 +0000 (+0000) Subject: restored the default value of wxObjectEventFunctor wxNewEventFunctor and explain... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/898a466aef28f9a1d8266205f376dd22eaacf855 restored the default value of wxObjectEventFunctor wxNewEventFunctor and explain why is it needed git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/event.h b/include/wx/event.h index a4d22914f7..cd8b991501 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -244,12 +244,13 @@ private: wxObjectEventFunction m_method; }; -// Create a functor for the legacy events: handler can be NULL +// Create a functor for the legacy events: handler can be NULL and its default +// value is used by the event table macros inline wxObjectEventFunctor * wxNewEventFunctor(wxEventType WXUNUSED(evtType), wxObjectEventFunction method, - wxEvtHandler *handler) + wxEvtHandler *handler = NULL) { return new wxObjectEventFunctor(method, handler); }