X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f25881804583790351480098b50f4ce1b924e697..012a01fc1ea0f4c870eaf66bb332617affa5abd0:/contrib/src/xrc/xh_stbox.cpp diff --git a/contrib/src/xrc/xh_stbox.cpp b/contrib/src/xrc/xh_stbox.cpp index 977de263d4..1cac4fb6e3 100644 --- a/contrib/src/xrc/xh_stbox.cpp +++ b/contrib/src/xrc/xh_stbox.cpp @@ -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")); } - -