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