Minor cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6535dbafaf
commit
46b8b00b5e
@ -256,12 +256,14 @@ void wxXmlNode::AddProperty(wxXmlProperty *prop)
|
||||
|
||||
bool wxXmlNode::DeleteProperty(const wxString& name)
|
||||
{
|
||||
wxXmlProperty *prop;
|
||||
|
||||
if (m_properties == NULL)
|
||||
return FALSE;
|
||||
|
||||
else if (m_properties->GetName() == name)
|
||||
{
|
||||
wxXmlProperty *prop = m_properties;
|
||||
prop = m_properties;
|
||||
m_properties = prop->GetNext();
|
||||
prop->SetNext(NULL);
|
||||
delete prop;
|
||||
@ -275,7 +277,7 @@ bool wxXmlNode::DeleteProperty(const wxString& name)
|
||||
{
|
||||
if (p->GetNext()->GetName() == name)
|
||||
{
|
||||
wxXmlProperty *prop = p->GetNext();
|
||||
prop = p->GetNext();
|
||||
p->SetNext(prop->GetNext());
|
||||
prop->SetNext(NULL);
|
||||
delete prop;
|
||||
|
@ -256,12 +256,14 @@ void wxXmlNode::AddProperty(wxXmlProperty *prop)
|
||||
|
||||
bool wxXmlNode::DeleteProperty(const wxString& name)
|
||||
{
|
||||
wxXmlProperty *prop;
|
||||
|
||||
if (m_properties == NULL)
|
||||
return FALSE;
|
||||
|
||||
else if (m_properties->GetName() == name)
|
||||
{
|
||||
wxXmlProperty *prop = m_properties;
|
||||
prop = m_properties;
|
||||
m_properties = prop->GetNext();
|
||||
prop->SetNext(NULL);
|
||||
delete prop;
|
||||
@ -275,7 +277,7 @@ bool wxXmlNode::DeleteProperty(const wxString& name)
|
||||
{
|
||||
if (p->GetNext()->GetName() == name)
|
||||
{
|
||||
wxXmlProperty *prop = p->GetNext();
|
||||
prop = p->GetNext();
|
||||
p->SetNext(prop->GetNext());
|
||||
prop->SetNext(NULL);
|
||||
delete prop;
|
||||
|
Loading…
Reference in New Issue
Block a user