From: Mattia Barbon Date: Thu, 1 Aug 2002 19:55:29 +0000 (+0000) Subject: Assert is there is no wxMessageOutput X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0cf8b31be51b78617c06390e57390c2187784580 Assert is there is no wxMessageOutput git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/cmdline.cpp b/src/common/cmdline.cpp index 1c74dfdb5e..4911befc4e 100644 --- a/src/common/cmdline.cpp +++ b/src/common/cmdline.cpp @@ -846,6 +846,7 @@ int wxCmdLineParser::Parse(bool showUsage) { wxString usage; wxMessageOutput* msgOut = wxMessageOutput::Get(); + wxASSERT(msgOut); if ( showUsage ) usage = GetUsageString(); if ( msgOut ) msgOut->Printf( wxT("%s%s"), usage.c_str(), errorMsg.c_str() );