Added DetachOldLog to avoid destruction of old log target

Renamed wxLogPassThrough to wxLogInterposer
Added wxLogInterposerTemp


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46580 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2007-06-21 12:44:38 +00:00
parent dc99a350df
commit 47fe7ff382
4 changed files with 82 additions and 18 deletions

View File

@@ -865,20 +865,30 @@ void wxLogChain::DoLog(wxLogLevel level, const wxString& szString, time_t t)
}
}
// ----------------------------------------------------------------------------
// wxLogPassThrough
// ----------------------------------------------------------------------------
#ifdef __VISUALC__
// "'this' : used in base member initializer list" - so what?
#pragma warning(disable:4355)
#endif // VC++
wxLogPassThrough::wxLogPassThrough()
// ----------------------------------------------------------------------------
// wxLogInterposer
// ----------------------------------------------------------------------------
wxLogInterposer::wxLogInterposer()
: wxLogChain(this)
{
}
// ----------------------------------------------------------------------------
// wxLogInterposerTemp
// ----------------------------------------------------------------------------
wxLogInterposerTemp::wxLogInterposerTemp()
: wxLogChain(this)
{
DetachOldLog();
}
#ifdef __VISUALC__
#pragma warning(default:4355)
#endif // VC++