]> git.saurik.com Git - wxWidgets.git/blobdiff - contrib/src/xml/xh_spin.cpp
applied patch for compilation with gcc 3.0
[wxWidgets.git] / contrib / src / xml / xh_spin.cpp
index 3cc514893e1d121c79b9693ec1d380a277aeec0e..008876cfd13870fc27c4bf3b5880d23dbd4b2360 100644 (file)
@@ -36,7 +36,7 @@ wxSpinButtonXmlHandler::wxSpinButtonXmlHandler()
 
 wxObject *wxSpinButtonXmlHandler::DoCreateResource()
 { 
-    wxSpinButton *control = new wxSpinButton(m_ParentAsWindow,
+    wxSpinButton *control = new wxSpinButton(m_parentAsWindow,
                                     GetID(),
                                     GetPosition(), GetSize(),
                                     GetStyle( wxT("style"), wxSP_VERTICAL | wxSP_ARROW_KEYS ),
@@ -55,7 +55,7 @@ wxObject *wxSpinButtonXmlHandler::DoCreateResource()
 
 bool wxSpinButtonXmlHandler::CanHandle(wxXmlNode *node)
 {
-    return node->GetName() == wxT("spinbutton");
+    return IsOfClass(node, wxT("wxSpinButton"));
 }
 
 #endif // wxUSE_SPINBTN
@@ -73,7 +73,7 @@ wxSpinCtrlXmlHandler::wxSpinCtrlXmlHandler()
 
 wxObject *wxSpinCtrlXmlHandler::DoCreateResource()
 { 
-    wxSpinCtrl *control = new wxSpinCtrl(m_ParentAsWindow,
+    wxSpinCtrl *control = new wxSpinCtrl(m_parentAsWindow,
                                     GetID(),
                                     GetText(wxT("value")),
                                     GetPosition(), GetSize(),