- more cppcheck code cleanup

This commit is contained in:
Mark Vejvoda
2012-11-06 03:52:27 +00:00
parent 5bcc15a7fc
commit 29da478bd5
5 changed files with 16 additions and 5 deletions

View File

@@ -658,6 +658,8 @@ namespace rapidxml
: m_name(0)
, m_value(0)
, m_parent(0)
, m_name_size(0)
, m_value_size(0)
{
}
@@ -807,7 +809,7 @@ namespace rapidxml
//! Constructs an empty attribute with the specified type.
//! Consider using memory_pool of appropriate xml_document if allocating attributes manually.
xml_attribute()
xml_attribute() : m_next_attribute(0), m_prev_attribute(0)
{
}
@@ -902,6 +904,10 @@ namespace rapidxml
: m_type(type)
, m_first_node(0)
, m_first_attribute(0)
, m_last_attribute(0)
, m_last_node(0)
, m_next_sibling(0)
, m_prev_sibling(0)
{
}
@@ -1849,7 +1855,7 @@ namespace rapidxml
// Other character, skip it
default:
++text;
break;
}
}

View File

@@ -73,6 +73,7 @@ namespace rapidxml
break;
default:
*out++ = *begin; // No expansion, copy character
break;
}
}
++begin; // Step to next character