]> git.saurik.com Git - wxWidgets.git/commitdiff
replaced ASSERT in wxEvtHandler::ProcessPendingEvents() with a CHECK (replaces patch...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 12:54:29 +0000 (12:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 7 Feb 2004 12:54:29 +0000 (12:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25548 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/event.cpp

index 678d31d3cc41388d481264983cbcf3f96ebe272e..8b0fb73f573af0229d1506ee87013c60c75b1ed9 100644 (file)
@@ -1095,9 +1095,11 @@ void wxEvtHandler::AddPendingEvent(wxEvent& event)
 
 void wxEvtHandler::ProcessPendingEvents()
 {
 
 void wxEvtHandler::ProcessPendingEvents()
 {
-    // DE: It doesn't look like this method was intended to be called unless
-    // pending events have already been created.
-    wxASSERT_MSG(m_pendingEvents,wxT("Please call wxApp::ProcessPendingEvents() instead"));
+    // this method is only called by wxApp if this handler does have pending
+    // events
+    wxCHECK_RET( m_pendingEvents,
+                 wxT("Please call wxApp::ProcessPendingEvents() instead") );
+
 #if defined(__VISAGECPP__)
     wxENTER_CRIT_SECT( m_eventsLocker);
 #else
 #if defined(__VISAGECPP__)
     wxENTER_CRIT_SECT( m_eventsLocker);
 #else