wxUSE_LOG fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2004-07-20 19:11:34 +00:00
parent fe5ddd9250
commit f07941fc73
7 changed files with 37 additions and 4 deletions

View File

@@ -839,13 +839,17 @@ DatabaseDemoFrame::DatabaseDemoFrame(wxFrame *frame, const wxString& title,
pEditorDlg = NULL;
pParamDlg = NULL;
#if wxUSE_LOG
delete wxLog::SetActiveTarget(new wxLogStderr);
#endif // wxUSE_LOG
} // DatabaseDemoFrame constructor
DatabaseDemoFrame::~DatabaseDemoFrame()
{
#if wxUSE_LOG
delete wxLog::SetActiveTarget(NULL);
#endif // wxUSE_LOG
} // DatabaseDemoFrame destructor