X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8253f2e0637d1c87e38e1b6163882bac35d15074..c263eb03846c1b1439bf67d1d831255024278adf:/src/generic/logg.cpp?ds=sidebyside diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index 668a0cabf7..e8ed37b22a 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -251,7 +251,7 @@ void wxLogGui::Flush() m_bHasMessages = false; wxString appName = wxTheApp->GetAppName(); - if ( !!appName ) + if ( !appName.empty() ) appName[0u] = (wxChar)wxToupper(appName[0u]); long style; @@ -317,7 +317,7 @@ void wxLogGui::Flush() // this catches both cases of 1 message with wxUSE_LOG_DIALOG and any // situation without it - if ( !!str ) + if ( !str.empty() ) { wxMessageBox(str, title, wxOK | style); @@ -701,7 +701,7 @@ wxLogDialog::wxLogDialog(wxWindow *parent, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER) { - if ( ms_details.IsEmpty() ) + if ( ms_details.empty() ) { // ensure that we won't loop here if wxGetTranslation() // happens to pop up a Log message while translating this :-)