remove unneeded wxCHECK_MSG: GetNextMessage() can get the msg even if the event loop is not running; the check breaks the:

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
This commit is contained in:
Francesco Montorsi 2009-03-20 01:20:44 +00:00
parent fdfc5e18e7
commit be8ddd37e3

View 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 )