CRAB: Properly initialize all class members in RapidXML code

This commit is contained in:
hax0kartik 2023-08-11 12:39:51 +05:30 committed by Eugene Sandulenko
parent beeda4fa7f
commit a65053eae0

View File

@ -1,8 +1,9 @@
#ifndef RAPIDXML_HPP_INCLUDED
#define RAPIDXML_HPP_INCLUDED
// The file below has been edited to clean-up the includes as necessiated by ScummVM.
// The file below has been edited to clean up the includes as necessitated by ScummVM.
// Notably, code which was dependent on exception header has been removed.
// Modifications to constructors have been made to properly initialize all class/struct members
// Copyright (C) 2006, 2009 Marcin Kalicinski
// Version 1.13
@ -592,6 +593,8 @@ namespace rapidxml
xml_base()
: m_name(0)
, m_value(0)
, m_name_size(0)
, m_value_size(0)
, m_parent(0)
{
}
@ -741,6 +744,8 @@ namespace rapidxml
//! Constructs an empty attribute with the specified type.
//! Consider using memory_pool of appropriate xml_document if allocating attributes manually.
xml_attribute()
: m_prev_attribute(0)
, m_next_attribute(0)
{
}
@ -832,7 +837,11 @@ namespace rapidxml
xml_node(node_type type)
: m_type(type)
, m_first_node(0)
, m_last_node(0)
, m_first_attribute(0)
, m_last_attribute(0)
, m_prev_sibling(0)
, m_next_sibling(0)
{
}