From 3fb676f87d610b32ffa4d322aca1723fc93835bb Mon Sep 17 00:00:00 2001 From: George Tasker Date: Wed, 2 Jan 2002 15:25:17 +0000 Subject: [PATCH] Replaced 'delete' calls with wxDELETE() calls git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- contrib/src/xrc/xml.cpp | 15 ++++++--------- src/xrc/xml.cpp | 15 ++++++--------- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/contrib/src/xrc/xml.cpp b/contrib/src/xrc/xml.cpp index 5639d48a26..cf48cf0038 100644 --- a/contrib/src/xrc/xml.cpp +++ b/contrib/src/xrc/xml.cpp @@ -92,8 +92,8 @@ wxXmlNode::~wxXmlNode() wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node) { - delete m_properties; - delete m_children; + wxDELETE(m_properties); + wxDELETE(m_children); DoCopy(node); return *this; } @@ -303,8 +303,7 @@ wxXmlDocument::wxXmlDocument(const wxString& filename, wxXmlIOType io_type) { if (!Load(filename, io_type)) { - delete m_root; - m_root = NULL; + wxDELETE(m_root); } } @@ -315,8 +314,7 @@ wxXmlDocument::wxXmlDocument(wxInputStream& stream, wxXmlIOType io_type) { if (!Load(stream, io_type)) { - delete m_root; - m_root = NULL; + wxDELETE(m_root); } } @@ -331,7 +329,7 @@ wxXmlDocument::wxXmlDocument(const wxXmlDocument& doc) wxXmlDocument& wxXmlDocument::operator=(const wxXmlDocument& doc) { - delete m_root; + wxDELETE(m_root); DoCopy(doc); return *this; } @@ -417,8 +415,7 @@ void wxXmlDocument::AddHandler(wxXmlIOHandler *handler) void wxXmlDocument::CleanUpHandlers() { - delete sm_handlers; - sm_handlers = NULL; + wxDELETE(sm_handlers); } diff --git a/src/xrc/xml.cpp b/src/xrc/xml.cpp index 5639d48a26..cf48cf0038 100644 --- a/src/xrc/xml.cpp +++ b/src/xrc/xml.cpp @@ -92,8 +92,8 @@ wxXmlNode::~wxXmlNode() wxXmlNode& wxXmlNode::operator=(const wxXmlNode& node) { - delete m_properties; - delete m_children; + wxDELETE(m_properties); + wxDELETE(m_children); DoCopy(node); return *this; } @@ -303,8 +303,7 @@ wxXmlDocument::wxXmlDocument(const wxString& filename, wxXmlIOType io_type) { if (!Load(filename, io_type)) { - delete m_root; - m_root = NULL; + wxDELETE(m_root); } } @@ -315,8 +314,7 @@ wxXmlDocument::wxXmlDocument(wxInputStream& stream, wxXmlIOType io_type) { if (!Load(stream, io_type)) { - delete m_root; - m_root = NULL; + wxDELETE(m_root); } } @@ -331,7 +329,7 @@ wxXmlDocument::wxXmlDocument(const wxXmlDocument& doc) wxXmlDocument& wxXmlDocument::operator=(const wxXmlDocument& doc) { - delete m_root; + wxDELETE(m_root); DoCopy(doc); return *this; } @@ -417,8 +415,7 @@ void wxXmlDocument::AddHandler(wxXmlIOHandler *handler) void wxXmlDocument::CleanUpHandlers() { - delete sm_handlers; - sm_handlers = NULL; + wxDELETE(sm_handlers); } -- 2.45.2