]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_stbox.cpp
fixed typo
[wxWidgets.git] / contrib / src / xml / xh_stbox.cpp
index 3613fbc671e0c080e98adac00aa5668237a8f0fb..04dd72e4dda47ab6f294f8a776582dc14b66491c 100644 (file)
@@ -30,9 +30,9 @@ wxStaticBoxXmlHandler::wxStaticBoxXmlHandler()
 
 wxObject *wxStaticBoxXmlHandler::DoCreateResource()
 { 
-    wxStaticBox *box = new wxStaticBox(m_ParentAsWindow,
+    wxStaticBox *box = new wxStaticBox(m_parentAsWindow,
                                     GetID(),
-                                    GetText(_T("label")),
+                                    GetText(wxT("label")),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     GetName()
@@ -46,7 +46,7 @@ wxObject *wxStaticBoxXmlHandler::DoCreateResource()
 
 bool wxStaticBoxXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("staticbox");
+    return IsOfClass(node, wxT("wxStaticBox"));
 }