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
This commit is contained in:
Vadim Zeitlin
2009-01-12 16:53:07 +00:00
parent 03f3617bf3
commit 898a466aef

View File

@@ -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);
}