From: Chris Elliott Date: Sat, 24 May 2008 17:24:38 +0000 (+0000) Subject: Borland still hates ternary ? X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/997c7e4616fc41fb571553a8998d1f13ff90b278 Borland still hates ternary ? git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index e6a471d9b3..da9af7b1d9 100644 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -195,7 +195,8 @@ void wxMessageOutputMessageBox::Output(const wxString& str) out.Replace(wxT("\t"), wxT(" ")); #endif - wxString title = wxTheApp ? wxTheApp->GetAppDisplayName() : wxT("wxWidgets"); + wxString title = wxT("wxWidgets") ; + if (wxTheApp) title = wxTheApp->GetAppDisplayName(); ::wxMessageBox(out, title); }