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:
Vadim Zeitlin
2001-05-17 10:11:34 +00:00
parent 1912918cce
commit 36bd690299
3 changed files with 36 additions and 4 deletions

View File

@@ -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 )