]> git.saurik.com Git - wxWidgets.git/commitdiff
Applied Peter Most's EVT_SPIN crash fix
authorJulian Smart <julian@anthemion.co.uk>
Sun, 18 Jan 2009 19:30:23 +0000 (19:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Sun, 18 Jan 2009 19:30:23 +0000 (19:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/event.h

index e88450a8a28fe2b03f9b5f8e332fe1b9fa3249d5..42c5406b1398372c6c3e48f4d27449be8f3b3a0f 100644 (file)
@@ -253,7 +253,7 @@ private:
 // value is used by the event table macros
 
 inline wxObjectEventFunctor *
-wxNewEventFunctor(wxEventType WXUNUSED(evtType),
+wxNewEventFunctor(const wxEventType& WXUNUSED(evtType),
                   wxObjectEventFunction method,
                   wxEvtHandler *handler = NULL)
 {
@@ -261,7 +261,7 @@ wxNewEventFunctor(wxEventType WXUNUSED(evtType),
 }
 
 inline wxObjectEventFunctor
-wxConstructEventFunctor(wxEventType WXUNUSED(evtType),
+wxConstructEventFunctor(const wxEventType& WXUNUSED(evtType),
                         wxObjectEventFunction method,
                         wxEvtHandler *handler)
 {