]> git.saurik.com Git - wxWidgets.git/commitdiff
Borland still hates ternary ?
authorChris Elliott <biol75@york.ac.uk>
Sat, 24 May 2008 17:24:38 +0000 (17:24 +0000)
committerChris Elliott <biol75@york.ac.uk>
Sat, 24 May 2008 17:24:38 +0000 (17:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/msgout.cpp

index e6a471d9b3178f72aec9f3bb42733e724541e418..da9af7b1d9ca6516073012dfaed6b7bbcd109fbd 100644 (file)
@@ -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);
 }