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:
parent
3b8a759bda
commit
a096b4f707
1 changed files with 2 additions and 0 deletions
|
|
@ -697,6 +697,8 @@ void XmlElement::removeChildElement (XmlElement* const childToRemove,
|
|||
{
|
||||
if (childToRemove != nullptr)
|
||||
{
|
||||
jassert (containsChildElement (childToRemove));
|
||||
|
||||
firstChildElement.remove (childToRemove);
|
||||
|
||||
if (shouldDeleteTheChild)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue