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:
parent
6ff9512059
commit
61ed92ee51
5 changed files with 45 additions and 7 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue