Minor cleanup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
George Tasker 2002-01-16 13:40:19 +00:00
parent 6535dbafaf
commit 46b8b00b5e
2 changed files with 8 additions and 4 deletions

View File

@ -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;

View File

@ -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;