X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0826b119e63f4cfbf8361cbaf7cedef56e0ec53..1c871fe2a4c1dc5bb1f5b392a4c4759779b337b7:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 469d6534c9..f86816198d 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -2337,12 +2337,12 @@ public: virtual bool ProcessEvent(wxEvent& event); // add an event to be processed later - virtual void AddPendingEvent(wxEvent& event); + virtual void AddPendingEvent(const wxEvent& event); void ProcessPendingEvents(); #if wxUSE_THREADS - bool ProcessThreadEvent(wxEvent& event); + bool ProcessThreadEvent(const wxEvent& event); #endif // Dynamic association of a member function handler with the event handler, @@ -2498,7 +2498,7 @@ private: // Post a message to the given eventhandler which will be processed during the // next event loop iteration -inline void wxPostEvent(wxEvtHandler *dest, wxEvent& event) +inline void wxPostEvent(wxEvtHandler *dest, const wxEvent& event) { wxCHECK_RET( dest, wxT("need an object to post event to in wxPostEvent") );