changed AddPendingEvent() to take const wxEvent reference, it doesn't need to modify it

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-06-21 21:56:50 +00:00
parent 414721d003
commit 76bfdc9ad9
3 changed files with 6 additions and 6 deletions

View File

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