X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1c8ac192c68b3ac8fb6b8c1bca23d9c735de1727..9c21efe30131c78c25763446e0754e2a0b54dc30:/contrib/src/xml/xh_unkwn.cpp diff --git a/contrib/src/xml/xh_unkwn.cpp b/contrib/src/xml/xh_unkwn.cpp index d9a05b7c52..5a8145c1ff 100644 --- a/contrib/src/xml/xh_unkwn.cpp +++ b/contrib/src/xml/xh_unkwn.cpp @@ -32,8 +32,8 @@ wxUnknownWidgetXmlHandler::wxUnknownWidgetXmlHandler() wxObject *wxUnknownWidgetXmlHandler::DoCreateResource() { - long id = GetLong(_T("id"), -1); - wxString name = GetParamValue(_T("name")); + long id = GetLong(wxT("id"), -1); + wxString name = GetParamValue(wxT("name")); wxWindow *wnd = NULL; @@ -43,7 +43,7 @@ wxObject *wxUnknownWidgetXmlHandler::DoCreateResource() wnd = m_ParentAsWindow->FindWindow(name); if (wnd == NULL) - wxLogError(_T("Cannot find specified window for (id=%li, name='%s')."), id, name.mb_str()); + wxLogError(wxT("Cannot find specified window for class 'unknown' (id=%li, name='%s')."), id, name.mb_str()); else { if (wnd->GetParent() != m_ParentAsWindow) @@ -56,6 +56,6 @@ wxObject *wxUnknownWidgetXmlHandler::DoCreateResource() bool wxUnknownWidgetXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("unknown"); + return IsOfClass(node, wxT("unknown")); }