X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3baa26624a526e2919699e5061a020ee0a0a5411..592584e4e9c3c01a05fda770dcd1f88a8a8d69f1:/demos/poem/wxpoem.h diff --git a/demos/poem/wxpoem.h b/demos/poem/wxpoem.h index 1c67f781f4..605ed69fa5 100644 --- a/demos/poem/wxpoem.h +++ b/demos/poem/wxpoem.h @@ -14,10 +14,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(__APPLE__) -#pragma interface "wxpoem.h" -#endif - // Define a new application class MyApp: public wxApp { @@ -33,7 +29,7 @@ class MyCanvas: public wxWindow { public: MyCanvas(wxFrame *frame); - ~MyCanvas(); + virtual ~MyCanvas(); void OnPaint(wxPaintEvent& event); void OnMouseEvent(wxMouseEvent& event); @@ -51,7 +47,7 @@ class MainWindow: public wxFrame public: MyCanvas *canvas; MainWindow(wxFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style); - ~MainWindow(); + virtual ~MainWindow(); void OnCloseWindow(wxCloseEvent& event); void OnChar(wxKeyEvent& event);