added wxLog::ClearTraceMasks()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10192 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -323,6 +323,16 @@ wxLog *wxLog::SetActiveTarget(wxLog *pLogger)
|
||||
return pOldLogger;
|
||||
}
|
||||
|
||||
void wxLog::DontCreateOnDemand()
|
||||
{
|
||||
ms_bAutoCreate = FALSE;
|
||||
|
||||
// this is usually called at the end of the program and we assume that it
|
||||
// is *always* called at the end - so we free memory here to avoid false
|
||||
// memory leak reports from wxWin memory tracking code
|
||||
ClearTraceMasks();
|
||||
}
|
||||
|
||||
void wxLog::RemoveTraceMask(const wxString& str)
|
||||
{
|
||||
int index = ms_aTraceMasks.Index(str);
|
||||
@@ -330,6 +340,11 @@ void wxLog::RemoveTraceMask(const wxString& str)
|
||||
ms_aTraceMasks.Remove((size_t)index);
|
||||
}
|
||||
|
||||
void wxLog::ClearTraceMasks()
|
||||
{
|
||||
ms_aTraceMasks.Clear();
|
||||
}
|
||||
|
||||
void wxLog::TimeStamp(wxString *str)
|
||||
{
|
||||
if ( ms_timestamp )
|
||||
|
Reference in New Issue
Block a user