]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_bttn.cpp
fixed memory leak in wxZlibInputStream
[wxWidgets.git] / contrib / src / xml / xh_bttn.cpp
index 4fc936f4abf712f2b718ee7d5af9bddc6ff2ed47..1bb47f4362b337ff62ab9159f4b8c0c6d10f7245 100644 (file)
@@ -34,12 +34,12 @@ wxObject *wxButtonXmlHandler::DoCreateResource()
 { 
     wxButton *button = new wxButton(m_ParentAsWindow,
                                     GetID(),
-                                    GetText(_T("label")),
+                                    GetText(wxT("label")),
                                     GetPosition(), GetSize(),
                                     GetStyle(),
                                     wxDefaultValidator,
                                     GetName());
-    if (GetBool(_T("default"), 0) == 1) button->SetDefault();
+    if (GetBool(wxT("default"), 0) == 1) button->SetDefault();
     SetupWindow(button);
     
     return button;
@@ -49,7 +49,7 @@ wxObject *wxButtonXmlHandler::DoCreateResource()
 
 bool wxButtonXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == _T("button");
+    return IsOfClass(node, wxT("wxButton"));
 }