X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5b077ec744c49b77a9efdb050556e361c0865bb7..193d0c93106d21067107c262874763d4c0921707:/src/common/msgout.cpp?ds=sidebyside diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 9ba8be65d3..ca7f4e1c70 100755 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -76,7 +76,7 @@ wxMessageOutput* wxMessageOutput::Set(wxMessageOutput* msgout) return old; } -void wxMessageOutputBase::DoPrintf(const wxChar* format, ...) +void wxMessageOutput::DoPrintf(const wxString& format, ...) { va_list args; va_start(args, format); @@ -117,7 +117,7 @@ void wxMessageOutputBest::Output(const wxString& str) else #endif // __WINDOWS__/!__WINDOWS__ { - const wxWX2MBbuf buf(str.mb_str()); + const wxWX2MBbuf buf = str.mb_str(); if ( buf ) fprintf(stderr, "%s", (const char*) buf); @@ -132,7 +132,7 @@ void wxMessageOutputBest::Output(const wxString& str) void wxMessageOutputStderr::Output(const wxString& str) { - const wxWX2MBbuf buf(str.mb_str()); + const wxWX2MBbuf buf = str.mb_str(); if ( buf ) fprintf(stderr, "%s", (const char*) buf);