X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5854bb83e0b27a07e82c706cd99cf772dfdfcb0a..7ea1c917764fb2588fe1aadc75c49ba300f8cb2f:/src/generic/logg.cpp diff --git a/src/generic/logg.cpp b/src/generic/logg.cpp index 9fcf418e69..fd7f2a25b2 100644 --- a/src/generic/logg.cpp +++ b/src/generic/logg.cpp @@ -18,10 +18,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "logg.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -88,10 +84,6 @@ // allows to exclude the usage of wxDateTime static wxString TimeStamp(const wxChar *format, time_t t) { -#ifdef __WXWINCE__ - // FIXME - return wxEmptyString; -#else wxChar buf[4096]; if ( !wxStrftime(buf, WXSIZEOF(buf), format, localtime(&t)) ) { @@ -99,7 +91,6 @@ static wxString TimeStamp(const wxChar *format, time_t t) wxFAIL_MSG(_T("strftime() failed")); } return wxString(buf); -#endif } @@ -434,6 +425,8 @@ void wxLogGui::DoLog(wxLogLevel level, const wxChar *szString, time_t t) // wxLogWindow and wxLogFrame implementation // ---------------------------------------------------------------------------- +#if wxUSE_LOGWINDOW + // log frame class // --------------- class wxLogFrame : public wxFrame @@ -687,6 +680,8 @@ wxLogWindow::~wxLogWindow() delete m_pLogFrame; } +#endif // wxUSE_LOGWINDOW + // ---------------------------------------------------------------------------- // wxLogDialog // ---------------------------------------------------------------------------- @@ -913,7 +908,7 @@ void wxLogDialog::CreateDetailsControls() if ( !fmt ) { // default format - fmt = wxDefaultDateTimeFormat; + fmt = _T("%c"); } size_t count = m_messages.GetCount(); @@ -999,7 +994,7 @@ void wxLogDialog::OnSave(wxCommandEvent& WXUNUSED(event)) if ( !fmt ) { // default format - fmt = wxDefaultDateTimeFormat; + fmt = _T("%c"); } size_t count = m_messages.GetCount();