]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/univ/toplevel.h
use a virtual function instead of wxDynamicCast(wxMDIParentFrame) in wxFrame code...
[wxWidgets.git] / include / wx / univ / toplevel.h
index a13d5c978b8ec6bc8a03d42572d317d21f20d787..d72d9ac85aee72c4bb633ffea29726007f37e5e8 100644 (file)
@@ -153,7 +153,7 @@ public:
 
     virtual wxSize GetMinSize() const;
 
-    virtual wxWindow *GetInputWindow() const { return wx_const_cast(wxTopLevelWindow*, this); }
+    virtual wxWindow *GetInputWindow() const { return const_cast<wxTopLevelWindow*>(this); }
 
 protected:
     virtual void DoGetClientSize(int *width, int *height) const;