]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/fswatcher/fswatcher.cpp
Fix non-PCH builds
[wxWidgets.git] / samples / fswatcher / fswatcher.cpp
index 51014172df941b4c468377910d174531cc5c02ad..907f46ceaf31ae7b8388a9e078e361d9958c6c42 100644 (file)
@@ -66,8 +66,7 @@ public:
     // 'Main program' equivalent: the program execution "starts" here
     virtual bool OnInit()
     {
-        // TODO remove then this code becomes rock-solid
-        wxLog::AddTraceMask(wxTRACE_EVT_SOURCE);
+        wxLog::AddTraceMask("EventSource");
         wxLog::AddTraceMask(wxTRACE_FSWATCHER);
 
         // create the main application window
@@ -280,8 +279,7 @@ void MyFrame::OnWatch(wxCommandEvent& event)
     {
         wxCHECK_RET(m_watcher, "Watcher not initialized");
         m_filesList->DeleteAllItems();
-        delete m_watcher;
-        m_watcher = NULL;
+        wxDELETE(m_watcher);
     }
 }