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