add public wxLog::Log() to avoid ugly casts needed in order to call DoLog() from derived classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-02-22 00:46:25 +00:00
parent cf92f48759
commit efce878a2a
4 changed files with 43 additions and 11 deletions

View File

@@ -915,16 +915,11 @@ void wxLogChain::DoLog(wxLogLevel level, const wxString& szString, time_t t)
{
// let the previous logger show it
if ( m_logOld && IsPassingMessages() )
{
// bogus cast just to access protected DoLog
((wxLogChain *)m_logOld)->DoLog(level, szString, t);
}
m_logOld->Log(level, szString, t);
// and also send it to the new one
if ( m_logNew && m_logNew != this )
{
// as above...
((wxLogChain *)m_logNew)->DoLog(level, szString, t);
}
m_logNew->Log(level, szString, t);
}
#ifdef __VISUALC__