move Add/DeleteAttribute() implementations out of line to avoid deprecation warnings when including xml.h from user code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -252,6 +252,21 @@ bool wxXmlNode::RemoveChild(wxXmlNode *child)
|
||||
}
|
||||
}
|
||||
|
||||
void wxXmlNode::AddAttribute(const wxString& name, const wxString& value)
|
||||
{
|
||||
AddProperty(name, value);
|
||||
}
|
||||
|
||||
void wxXmlNode::AddAttribute(wxXmlAttribute *attr)
|
||||
{
|
||||
AddProperty(attr);
|
||||
}
|
||||
|
||||
bool wxXmlNode::DeleteAttribute(const wxString& name)
|
||||
{
|
||||
return DeleteProperty(name);
|
||||
}
|
||||
|
||||
void wxXmlNode::AddProperty(const wxString& name, const wxString& value)
|
||||
{
|
||||
AddProperty(new wxXmlAttribute(name, value, NULL));
|
||||
|
||||
Reference in New Issue
Block a user