X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09dc1241b72e4c03d2ebd757bb063296aef7a18e..9d8c2f419f522408a922277df330d4c4511befb9:/contrib/src/xml/xh_sttxt.cpp diff --git a/contrib/src/xml/xh_sttxt.cpp b/contrib/src/xml/xh_sttxt.cpp index d4e4ff24f6..bfecff2584 100644 --- a/contrib/src/xml/xh_sttxt.cpp +++ b/contrib/src/xml/xh_sttxt.cpp @@ -31,9 +31,9 @@ wxStaticTextXmlHandler::wxStaticTextXmlHandler() wxObject *wxStaticTextXmlHandler::DoCreateResource() { - wxStaticText *text = new wxStaticText(m_ParentAsWindow, + wxStaticText *text = new wxStaticText(m_parentAsWindow, GetID(), - GetText(_T("label")), + GetText(wxT("label")), GetPosition(), GetSize(), GetStyle(), GetName() @@ -47,7 +47,7 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource() bool wxStaticTextXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("statictext"); + return IsOfClass(node, wxT("wxStaticText")); }