1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-24 01:54:22 +00:00

Added an assertion to XmlElement::removeChildElement() to check that childToRemove is actually a child of the XmlElement

This commit is contained in:
ed 2019-02-08 09:24:02 +00:00
parent 3b8a759bda
commit a096b4f707

View file

@ -697,6 +697,8 @@ void XmlElement::removeChildElement (XmlElement* const childToRemove,
{
if (childToRemove != nullptr)
{
jassert (containsChildElement (childToRemove));
firstChildElement.remove (childToRemove);
if (shouldDeleteTheChild)