]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/log.cpp
pc 2 mac conversion for file operations
[wxWidgets.git] / src / common / log.cpp
index 53de91f0468de6fd0058ebe7643ca95f0e00ef91..86a83f0954a0dbaf67ae3b0fc028eca2b30afbfa 100644 (file)
 #include <stdlib.h>
 #include <time.h>
 
+#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()