From 898a466aef28f9a1d8266205f376dd22eaacf855 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 12 Jan 2009 16:53:07 +0000 Subject: [PATCH] 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 --- include/wx/event.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.45.2