]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/stc/stctest.cpp
Compilation fix: include wx/button.h from wx/commandlinkbutton.h.
[wxWidgets.git] / samples / stc / stctest.cpp
index 4b5a4658a29792a0c7595a16a21f170b68a0e2ea..9b83838205caac8c90b78b392dd5d72fa145d984 100644 (file)
 #include "edit.h"        // Edit module
 #include "prefs.h"       // Prefs
 
-#ifndef __WXMSW__
-    #include "../sample.xpm"
-#endif
-
 //----------------------------------------------------------------------------
 // resources
 //----------------------------------------------------------------------------
@@ -682,17 +678,13 @@ AppAbout::AppAbout (wxWindow *parent,
 }
 
 AppAbout::~AppAbout () {
-    if (m_timer)  {
-        delete m_timer;
-        m_timer = NULL;
-    }
+    wxDELETE(m_timer);
 }
 
 //----------------------------------------------------------------------------
 // event handlers
 void AppAbout::OnTimerEvent (wxTimerEvent &WXUNUSED(event)) {
-    if (m_timer) delete m_timer;
-    m_timer = NULL;
+    wxDELETE(m_timer);
     EndModal (wxID_OK);
 }