X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/63ee409315a898aba5afc53f6d50bad87b230118..892aeafc2a0212b4c3bebcaddd96a42cdd307afd:/contrib/src/xml/xh_panel.cpp diff --git a/contrib/src/xml/xh_panel.cpp b/contrib/src/xml/xh_panel.cpp index cc4cff021a..0c09dd27d6 100644 --- a/contrib/src/xml/xh_panel.cpp +++ b/contrib/src/xml/xh_panel.cpp @@ -42,13 +42,13 @@ wxObject *wxPanelXmlHandler::DoCreateResource() panel = new wxPanel(m_ParentAsWindow, GetID(), GetPosition(), GetSize(), - GetStyle(_T("style"), 0), + GetStyle(wxT("style"), 0), GetName()); else panel->Create(m_ParentAsWindow, GetID(), GetPosition(), GetSize(), - GetStyle(_T("style"), 0), + GetStyle(wxT("style"), 0), GetName()); SetupWindow(panel); CreateChildren(panel); @@ -59,5 +59,5 @@ wxObject *wxPanelXmlHandler::DoCreateResource() bool wxPanelXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("panel"); + return IsOfClass(node, wxT("wxPanel")); }