]> git.saurik.com Git - wxWidgets.git/commitdiff
Assert is there is no wxMessageOutput
authorMattia Barbon <mbarbon@cpan.org>
Thu, 1 Aug 2002 19:55:29 +0000 (19:55 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Thu, 1 Aug 2002 19:55:29 +0000 (19:55 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/cmdline.cpp

index 1c74dfdb5ecdb3ad65d7f0aff6da1f6ee4dfba32..4911befc4e1f210274766e091b3a524a3f3e4126 100644 (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() );