]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xrc/xh_stbox.cpp
eliminate __WIN32__ only code
[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"));
 }
-
-