From 0cf8b31be51b78617c06390e57390c2187784580 Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 1 Aug 2002 19:55:29 +0000 Subject: [PATCH] Assert is there is no wxMessageOutput git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/cmdline.cpp | 1 + 1 file changed, 1 insertion(+) 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() ); -- 2.47.2