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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user