Assert is there is no wxMessageOutput

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2002-08-01 19:55:29 +00:00
parent 90a1a975d4
commit 0cf8b31be5

View File

@ -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() );