]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_stbox.cpp
fixed compilation under Unix where SQL_DATETIME is not defined
[wxWidgets.git] / src / xrc / xh_stbox.cpp
index 977de263d4d526c4e756b9e68f52845063fdae05..1cac4fb6e3df86f3098203c2a328cc4f9b201953 100644 (file)
@@ -30,10 +30,7 @@ wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
 
 wxObject *wxStaticBoxXmlHandler::DoCreateResource()
 { 
-    wxStaticBox *box = wxStaticCast(m_instance, wxStaticBox);
-
-    if (!box)
-       box = new wxStaticBox;
+    XRC_MAKE_INSTANCE(box, wxStaticBox)
 
     box->Create(m_parentAsWindow,
                 GetID(),
@@ -47,11 +44,7 @@ wxObject *wxStaticBoxXmlHandler::DoCreateResource()
     return box;
 }
 
-
-
 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
 {
     return IsOfClass(node, wxT("wxStaticBox"));
 }
-
-