Eliminated possibility of throwing from XML_Node destructor

This commit is contained in:
Ray Speth 2014-01-06 18:45:52 +00:00
parent 07cf85b851
commit 907bfa0a10

View file

@ -360,9 +360,9 @@ XML_Node& XML_Node::operator=(const XML_Node& right)
XML_Node::~XML_Node()
{
if (m_locked)
throw CanteraError("XML_Node::~XML_Node",
"attempt to delete locked XML_Node "+name());
if (m_locked) {
writelog("XML_Node::~XML_Node: deleted a locked XML_Node: "+name());
}
int n = static_cast<int>(m_children.size());
for (int i = 0; i < n; i++) {
if (m_children[i]) {