From: Mattia Barbon Date: Wed, 2 Jul 2003 17:18:13 +0000 (+0000) Subject: More COMPATIBILITY_2_4 fixes. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/dc6d5e38c0baab30018545f91cc0c698cb4bdd62 More COMPATIBILITY_2_4 fixes. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/log.cpp b/src/common/log.cpp index 6e51ac79dd..86a83f0954 100644 --- a/src/common/log.cpp +++ b/src/common/log.cpp @@ -384,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; @@ -425,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() diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index c9994ce41d..1225ae88d0 100755 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -33,6 +33,7 @@ #include "wx/ffile.h" #include "wx/app.h" #include "wx/intl.h" + #include "wx/apptrait.h" #if wxUSE_GUI #include "wx/msgdlg.h" #endif // wxUSE_GUI @@ -64,7 +65,7 @@ wxMessageOutput* wxMessageOutput::Get() { if ( !ms_msgOut && wxTheApp ) { - ms_msgOut = wxTheApp->CreateMessageOutput(); + ms_msgOut = wxTheApp->GetTraits()->CreateMessageOutput(); } return ms_msgOut;