cleanup
This commit is contained in:
@@ -137,11 +137,11 @@ bool XNode::RemoveAttr( const RString &sName )
|
|||||||
{
|
{
|
||||||
XAttrs::iterator it = m_attrs.find( sName );
|
XAttrs::iterator it = m_attrs.find( sName );
|
||||||
if( it == m_attrs.end() )
|
if( it == m_attrs.end() )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
delete it->second;
|
delete it->second;
|
||||||
m_attrs.erase( it );
|
m_attrs.erase( it );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* If bOverwrite is true and a node already exists with that name, the old value will be deleted.
|
/* If bOverwrite is true and a node already exists with that name, the old value will be deleted.
|
||||||
|
|||||||
Reference in New Issue
Block a user