X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0c44ec973759a24442c3e97f3db7ad4fa5005928..8f9d20d16f54a088aea5fb5e826bf1690efac2ff:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 6d6bfde0bd..37143c97c4 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -209,8 +209,7 @@ void wxLogFatalError(const wxChar *szFormat, ...) void wxVLogVerbose(const wxChar *szFormat, va_list argptr) { if ( IsLoggingEnabled() ) { - wxLog *pLog = wxLog::GetActiveTarget(); - if ( pLog != NULL && pLog->GetVerbose() ) { + if ( wxLog::GetActiveTarget() != NULL && wxLog::GetVerbose() ) { wxCRIT_SECT_LOCKER(locker, gs_csLogBuf); wxVsnprintf(s_szBuf, s_szBufSize, szFormat, argptr); @@ -367,10 +366,6 @@ void WXDLLEXPORT wxLogSysError(long lErrCode, const wxChar *szFormat, ...) // wxLog class implementation // ---------------------------------------------------------------------------- -wxLog::wxLog() -{ -} - wxChar *wxLog::SetLogBuffer( wxChar *buf, size_t size) { wxChar *oldbuf = s_szBuf; @@ -558,7 +553,8 @@ void wxLogStderr::DoLogString(const wxChar *szString, time_t WXUNUSED(t)) wxAppTraits *traits = wxTheApp ? wxTheApp->GetTraits() : NULL; if ( traits && !traits->HasStderr() ) { - wxMessageOutputDebug().Printf(_T("%s"), str.c_str()); + wxMessageOutputDebug dbgout; + dbgout.Printf(_T("%s\n"), str.c_str()); } } }