]> git.saurik.com Git - wxWidgets.git/commitdiff
remove unneeded wxCHECK_MSG: GetNextMessage() can get the msg even if the event loop...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Fri, 20 Mar 2009 01:20:44 +0000 (01:20 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Fri, 20 Mar 2009 01:20:44 +0000 (01:20 +0000)
  while ( loop->Pending() )
    loop->Dispatch();
snippet in console apps since wxConsoleEventLoop::Dispatch calls GetNextMessage() (see also the TimerEventTestCase cppunit).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59636 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/evtloop.cpp

index 81276cfaeed1ec0de7207051f95016afbe998faa..5c5be481cf26ed0641c67b83f4601f1edacd727c 100644 (file)
@@ -79,8 +79,6 @@ bool wxMSWEventLoopBase::Pending() const
 
 bool wxMSWEventLoopBase::GetNextMessage(WXMSG* msg)
 {
-    wxCHECK_MSG( IsRunning(), false, _T("can't get messages if not running") );
-
     const BOOL rc = ::GetMessage(msg, NULL, 0, 0);
 
     if ( rc == 0 )