]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_sttxt.cpp
some minor fixes to the docs (bugs 13271[56])
[wxWidgets.git] / contrib / src / xml / xh_sttxt.cpp
index d4e4ff24f641ebc03dc06beb0d46f2173fabbbca..fbf8fd0938f55b18aebc3397af64ab75f7266c2f 100644 (file)
@@ -33,7 +33,7 @@ wxObject *wxStaticTextXmlHandler::DoCreateResource()
 { 
     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"));
 }