X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b008b592cce934305dfa2eaaae0cd824b0d1e1cb..8173fefe0a9d61cfe5244a301044aa2269bc1c31:/contrib/src/xml/xh_stbox.cpp diff --git a/contrib/src/xml/xh_stbox.cpp b/contrib/src/xml/xh_stbox.cpp index 3613fbc671..04dd72e4dd 100644 --- a/contrib/src/xml/xh_stbox.cpp +++ b/contrib/src/xml/xh_stbox.cpp @@ -30,9 +30,9 @@ wxStaticBoxXmlHandler::wxStaticBoxXmlHandler() wxObject *wxStaticBoxXmlHandler::DoCreateResource() { - wxStaticBox *box = new wxStaticBox(m_ParentAsWindow, + wxStaticBox *box = new wxStaticBox(m_parentAsWindow, GetID(), - GetText(_T("label")), + GetText(wxT("label")), GetPosition(), GetSize(), GetStyle(), GetName() @@ -46,7 +46,7 @@ wxObject *wxStaticBoxXmlHandler::DoCreateResource() bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("staticbox"); + return IsOfClass(node, wxT("wxStaticBox")); }