non-recursive destructors
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -77,7 +77,6 @@ public:
|
|||||||
wxXmlProperty(const wxString& name, const wxString& value,
|
wxXmlProperty(const wxString& name, const wxString& value,
|
||||||
wxXmlProperty *next)
|
wxXmlProperty *next)
|
||||||
: m_name(name), m_value(value), m_next(next) {}
|
: m_name(name), m_value(value), m_next(next) {}
|
||||||
~wxXmlProperty() { delete m_next; }
|
|
||||||
|
|
||||||
wxString GetName() const { return m_name; }
|
wxString GetName() const { return m_name; }
|
||||||
wxString GetValue() const { return m_value; }
|
wxString GetValue() const { return m_value; }
|
||||||
@@ -116,7 +115,7 @@ public:
|
|||||||
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
|
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
|
||||||
const wxString& name, const wxString& content,
|
const wxString& name, const wxString& content,
|
||||||
wxXmlProperty *props, wxXmlNode *next);
|
wxXmlProperty *props, wxXmlNode *next);
|
||||||
~wxXmlNode() { delete m_properties; delete m_next; delete m_children; }
|
~wxXmlNode();
|
||||||
|
|
||||||
// copy ctor & operator=. Note that this does NOT copy syblings
|
// copy ctor & operator=. Note that this does NOT copy syblings
|
||||||
// and parent pointer, i.e. m_parent and m_next will be NULL
|
// and parent pointer, i.e. m_parent and m_next will be NULL
|
||||||
|
@@ -77,7 +77,6 @@ public:
|
|||||||
wxXmlProperty(const wxString& name, const wxString& value,
|
wxXmlProperty(const wxString& name, const wxString& value,
|
||||||
wxXmlProperty *next)
|
wxXmlProperty *next)
|
||||||
: m_name(name), m_value(value), m_next(next) {}
|
: m_name(name), m_value(value), m_next(next) {}
|
||||||
~wxXmlProperty() { delete m_next; }
|
|
||||||
|
|
||||||
wxString GetName() const { return m_name; }
|
wxString GetName() const { return m_name; }
|
||||||
wxString GetValue() const { return m_value; }
|
wxString GetValue() const { return m_value; }
|
||||||
@@ -116,7 +115,7 @@ public:
|
|||||||
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
|
wxXmlNode(wxXmlNode *parent,wxXmlNodeType type,
|
||||||
const wxString& name, const wxString& content,
|
const wxString& name, const wxString& content,
|
||||||
wxXmlProperty *props, wxXmlNode *next);
|
wxXmlProperty *props, wxXmlNode *next);
|
||||||
~wxXmlNode() { delete m_properties; delete m_next; delete m_children; }
|
~wxXmlNode();
|
||||||
|
|
||||||
// copy ctor & operator=. Note that this does NOT copy syblings
|
// copy ctor & operator=. Note that this does NOT copy syblings
|
||||||
// and parent pointer, i.e. m_parent and m_next will be NULL
|
// and parent pointer, i.e. m_parent and m_next will be NULL
|
||||||
|
Reference in New Issue
Block a user