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

@ -40,7 +40,7 @@ each other.
\membersection{wxEvtHandler::AddPendingEvent}\label{wxevthandleraddpendingevent}
\func{virtual void}{AddPendingEvent}{\param{wxEvent\& }{event}}
\func{virtual void}{AddPendingEvent}{\param{const wxEvent\& }{event}}
This function posts an event to be processed later.

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

View File

@ -1056,7 +1056,7 @@ wxEvtHandler::~wxEvtHandler()
#if wxUSE_THREADS
bool wxEvtHandler::ProcessThreadEvent(wxEvent& event)
bool wxEvtHandler::ProcessThreadEvent(const wxEvent& event)
{
// check that we are really in a child thread
wxASSERT_MSG( !wxThread::IsMain(),
@ -1077,7 +1077,7 @@ void wxEvtHandler::ClearEventLocker()
#endif // wxUSE_THREADS
void wxEvtHandler::AddPendingEvent(wxEvent& event)
void wxEvtHandler::AddPendingEvent(const wxEvent& event)
{
// 1) Add event to list of pending events of this event handler