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:
@@ -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++
|
||||
|
Reference in New Issue
Block a user