X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/09dc1241b72e4c03d2ebd757bb063296aef7a18e..8173fefe0a9d61cfe5244a301044aa2269bc1c31:/contrib/src/xml/xh_radbt.cpp?ds=sidebyside diff --git a/contrib/src/xml/xh_radbt.cpp b/contrib/src/xml/xh_radbt.cpp index f68de95518..2c3bc840be 100644 --- a/contrib/src/xml/xh_radbt.cpp +++ b/contrib/src/xml/xh_radbt.cpp @@ -40,16 +40,16 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource() * normal radio button. */ - wxRadioButton *control = new wxRadioButton(m_ParentAsWindow, + wxRadioButton *control = new wxRadioButton(m_parentAsWindow, GetID(), - GetText(_T("label")), + GetText(wxT("label")), GetPosition(), GetSize(), GetStyle(), wxDefaultValidator, GetName() ); - control->SetValue( GetBool(_T("value"), 0)); + control->SetValue( GetBool(wxT("value"), 0)); SetupWindow(control); return control; @@ -59,7 +59,7 @@ wxObject *wxRadioButtonXmlHandler::DoCreateResource() bool wxRadioButtonXmlHandler::CanHandle(wxXmlNode *node) { - return node->GetName() == _T("radiobutton"); + return IsOfClass(node, wxT("wxRadioButton")); }