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

@@ -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