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

Added a method XmlElement::prependChildElement(), and used this for a few optimisations.

This commit is contained in:
jules 2013-10-25 12:52:19 +01:00
parent 6ff9512059
commit 61ed92ee51
5 changed files with 45 additions and 7 deletions

View file

@ -1840,8 +1840,8 @@ XmlElement* TreeViewItem::getOpennessState (const bool canReturnNull) const
e = new XmlElement ("OPEN");
for (int i = 0; i < subItems.size(); ++i)
e->addChildElement (subItems.getUnchecked(i)->getOpennessState (true));
for (int i = subItems.size(); --i >= 0;)
e->prependChildElement (subItems.getUnchecked(i)->getOpennessState (true));
}
else
{