]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xrc/xmlres.h
handle volume part of the path correctly in wxFileName(path, name, ext) ctor
[wxWidgets.git] / include / wx / xrc / xmlres.h
index 5d40588f547911a12f4778af5783b0731eb671ba..37dc3a18d799eb4ced7c956bb570b5f2b4d1741e 100644 (file)
@@ -291,13 +291,8 @@ private:
 //    wxXmlResource::Get()->LoadDialog(&dlg, mainFrame, "my_dialog");
 //    XRCCTRL(dlg, "my_textctrl", wxTextCtrl)->SetValue(wxT("default value"));
 
-#ifdef __WXDEBUG__
 #define XRCCTRL(window, id, type) \
-    (wxDynamicCast((window).FindWindow(XRCID(id)), type))
-#else
-#define XRCCTRL(window, id, type) \
-    ((type*)((window).FindWindow(XRCID(id))))
-#endif
+    (wxStaticCast((window).FindWindow(XRCID(id)), type))
 
 // wxXmlResourceHandler is an abstract base class for resource handlers
 // capable of creating a control from an XML node.
@@ -341,7 +336,7 @@ protected:
     wxXmlNode *m_node;
     wxString m_class;
     wxObject *m_parent, *m_instance;
-    wxWindow *m_parentAsWindow, *m_instanceAsWindow;
+    wxWindow *m_parentAsWindow;
 
     // --- Handy methods: