From: Włodzimierz Skiba Date: Mon, 4 Jul 2005 11:26:08 +0000 (+0000) Subject: Visible wxMessageOutputDebug instance. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c4b401b664f259d2b8424197cfa1126ef3e95144 Visible wxMessageOutputDebug instance. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index e8b718f05f..fe4aff00ae 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -550,7 +550,8 @@ void wxLogBuffer::DoLog(wxLogLevel level, const wxChar *szString, time_t t) TimeStamp(&str); str += szString; - wxMessageOutputDebug().Printf(_T("%s\n"), str.c_str()); + wxMessageOutputDebug dbgout; + dbgout.Printf(_T("%s\n"), str.c_str()); } #endif // __WXDEBUG__ break; @@ -794,7 +795,7 @@ const wxChar *wxSysErrorMsg(unsigned long nErrCode) // if this happens, something is seriously wrong, so don't use _() here // for safety wxSprintf(s_szBuf, _T("unknown error %lx"), nErrCode); - return s_szBuf; + return s_szBuf; }