Fix formatting and modernise
parent
c940fca2f4
commit
5e23722274
|
|
@ -123,16 +123,21 @@ LLXmlTreeNode::LLXmlTreeNode( const std::string& name, LLXmlTreeNode* parent, LL
|
|||
{
|
||||
}
|
||||
|
||||
// <FS:Beq/> Fix formatting and modernise
|
||||
// I don't even think the for loops are needed though.
|
||||
LLXmlTreeNode::~LLXmlTreeNode()
|
||||
{
|
||||
attribute_map_t::iterator iter;
|
||||
for (iter=mAttributes.begin(); iter != mAttributes.end(); iter++)
|
||||
delete iter->second;
|
||||
for(LLXmlTreeNode* node : mChildren)
|
||||
{
|
||||
delete node;
|
||||
}
|
||||
mChildren.clear();
|
||||
for (auto& attr : mAttributes)
|
||||
{
|
||||
delete attr.second;
|
||||
}
|
||||
mAttributes.clear();
|
||||
|
||||
for (auto& child : mChildren)
|
||||
{
|
||||
delete child;
|
||||
}
|
||||
mChildren.clear();
|
||||
}
|
||||
|
||||
void LLXmlTreeNode::dump( const std::string& prefix )
|
||||
|
|
|
|||
Loading…
Reference in New Issue