X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d2e1ef1928b7a2a292a6a5b9bd6fa2402a0c6b0f..bae41ce1922f02b8af69b4fffbf3b6a2183f9ba7:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index b71af7bd54..b29f583649 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -47,6 +47,7 @@ #include "wx/file.h" #include "wx/textfile.h" #include "wx/utils.h" +#include "wx/wxchar.h" #include "wx/log.h" // other standard headers @@ -576,7 +577,6 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t) if ( !m_bErrors ) { m_aMessages.Empty(); m_aTimes.Empty(); - m_bHasMessages = TRUE; m_bErrors = TRUE; } // fall through @@ -589,6 +589,7 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t) m_aMessages.Add(szString); m_aTimes.Add((long)t); + m_bHasMessages = TRUE; break; } } @@ -896,7 +897,7 @@ wxLog *wxLog::ms_pLogger = (wxLog *)NULL; bool wxLog::ms_doLog = TRUE; bool wxLog::ms_bAutoCreate = TRUE; -const wxChar *wxLog::ms_timestamp = "%X"; // time only, no date +const wxChar *wxLog::ms_timestamp = _T("%X"); // time only, no date wxTraceMask wxLog::ms_ulTraceMask = (wxTraceMask)0; wxArrayString wxLog::ms_aTraceMasks;