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:
@@ -40,7 +40,7 @@ each other.
|
|||||||
|
|
||||||
\membersection{wxEvtHandler::AddPendingEvent}\label{wxevthandleraddpendingevent}
|
\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.
|
This function posts an event to be processed later.
|
||||||
|
|
||||||
|
@@ -2337,12 +2337,12 @@ public:
|
|||||||
virtual bool ProcessEvent(wxEvent& event);
|
virtual bool ProcessEvent(wxEvent& event);
|
||||||
|
|
||||||
// add an event to be processed later
|
// add an event to be processed later
|
||||||
virtual void AddPendingEvent(wxEvent& event);
|
virtual void AddPendingEvent(const wxEvent& event);
|
||||||
|
|
||||||
void ProcessPendingEvents();
|
void ProcessPendingEvents();
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
bool ProcessThreadEvent(wxEvent& event);
|
bool ProcessThreadEvent(const wxEvent& event);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Dynamic association of a member function handler with the event handler,
|
// 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
|
// Post a message to the given eventhandler which will be processed during the
|
||||||
// next event loop iteration
|
// 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") );
|
wxCHECK_RET( dest, wxT("need an object to post event to in wxPostEvent") );
|
||||||
|
|
||||||
|
@@ -1056,7 +1056,7 @@ wxEvtHandler::~wxEvtHandler()
|
|||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
|
|
||||||
bool wxEvtHandler::ProcessThreadEvent(wxEvent& event)
|
bool wxEvtHandler::ProcessThreadEvent(const wxEvent& event)
|
||||||
{
|
{
|
||||||
// check that we are really in a child thread
|
// check that we are really in a child thread
|
||||||
wxASSERT_MSG( !wxThread::IsMain(),
|
wxASSERT_MSG( !wxThread::IsMain(),
|
||||||
@@ -1077,7 +1077,7 @@ void wxEvtHandler::ClearEventLocker()
|
|||||||
|
|
||||||
#endif // wxUSE_THREADS
|
#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
|
// 1) Add event to list of pending events of this event handler
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user