X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8fa2e6a209ab83319bbc4d652067c9123deaa335..3dfb93fd8225558306cb41fd6f4b1a2516859565:/src/generic/progdlgg.cpp diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index c156b612b0..c43494211f 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -117,12 +117,12 @@ wxProgressDialog::wxProgressDialog(wxString const &title, bool -wxProgressDialog::Update(int value, const char *newmsg) +wxProgressDialog::Update(int value, const wxString& newmsg) { wxASSERT(value == -1 || m_gauge); if(m_gauge) m_gauge->SetValue(value); - if(newmsg) + if(!newmsg.IsNull()) m_msg->SetLabel(newmsg); wxYield(); return m_state != Canceled;