X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/28c0bed36a7063f87dc851e65fa3b0b606224ee1..9d8c2f419f522408a922277df330d4c4511befb9:/contrib/src/xml/xh_stlin.cpp diff --git a/contrib/src/xml/xh_stlin.cpp b/contrib/src/xml/xh_stlin.cpp index 0ec560d52c..ae9d9f0b6e 100644 --- a/contrib/src/xml/xh_stlin.cpp +++ b/contrib/src/xml/xh_stlin.cpp @@ -34,10 +34,10 @@ wxStaticLineXmlHandler::wxStaticLineXmlHandler() wxObject *wxStaticLineXmlHandler::DoCreateResource() { - wxStaticLine *line = new wxStaticLine(m_ParentAsWindow, + wxStaticLine *line = new wxStaticLine(m_parentAsWindow, GetID(), GetPosition(), GetSize(), - GetStyle(_T("style"), wxLI_HORIZONTAL), + GetStyle(wxT("style"), wxLI_HORIZONTAL), GetName() ); SetupWindow(line); @@ -49,7 +49,7 @@ wxObject *wxStaticLineXmlHandler::DoCreateResource() bool wxStaticLineXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("staticline"); + return IsOfClass(node, wxT("wxStaticLine")); } #endif