Fix formatting and modernise

master
Beq 2024-05-17 11:06:55 +01:00
parent c940fca2f4
commit 5e23722274
1 changed files with 13 additions and 8 deletions

View File

@ -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 )