]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mgl/app.cpp
safeguards against crashes
[wxWidgets.git] / src / mgl / app.cpp
index c6fab2dc9b95f13e96d786d88e8c2aa7c438a4e9..da9471e4dcc6eafd88b0a6c4bf53e1176eead23c 100644 (file)
@@ -142,9 +142,13 @@ class wxRootWindow : public wxWindow
             m_wnd = NULL; 
         }
 
-        virtual bool AcceptsFocus() { return FALSE; }
+        virtual bool AcceptsFocus() const { return FALSE; }
+        
+        DECLARE_DYNAMIC_CLASS(wxRootWindow)
 };
 
+IMPLEMENT_DYNAMIC_CLASS(wxRootWindow, wxWindow)
+
 static wxRootWindow *gs_rootWindow = NULL;
 
 //-----------------------------------------------------------------------------