X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e2478fde622a16d25c66690af353dfdc37e7b582..56fae7b8f5671814fdb2cdc9ae79dbecf078c68d:/src/common/log.cpp diff --git a/src/common/log.cpp b/src/common/log.cpp index 53de91f046..86a83f0954 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -51,6 +51,10 @@ #include #include +#if defined(__WINDOWS__) + #include "wx/msw/private.h" // includes windows.h +#endif + // ---------------------------------------------------------------------------- // non member functions // ---------------------------------------------------------------------------- @@ -380,7 +384,7 @@ wxLog *wxLog::GetActiveTarget() // ask the application to create a log target for us if ( wxTheApp != NULL ) - ms_pLogger = wxTheApp->CreateLogTarget(); + ms_pLogger = wxTheApp->GetTraits()->CreateLogTarget(); else ms_pLogger = new wxLogStderr; @@ -421,7 +425,7 @@ void wxLog::RemoveTraceMask(const wxString& str) { int index = ms_aTraceMasks.Index(str); if ( index != wxNOT_FOUND ) - ms_aTraceMasks.Remove((size_t)index); + ms_aTraceMasks.RemoveAt((size_t)index); } void wxLog::ClearTraceMasks()