mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
XmlElement: Update loops to use new iterators
This commit is contained in:
parent
40f6ac7c47
commit
3baaad8b5b
27 changed files with 42 additions and 42 deletions
|
|
@ -46,7 +46,7 @@ public:
|
|||
template <typename OperationType>
|
||||
bool applyOperationToChildWithID (const String& id, OperationType& op) const
|
||||
{
|
||||
forEachXmlChildElement (*xml, e)
|
||||
for (auto* e : xml->getChildIterator())
|
||||
{
|
||||
XmlPath child (e, this);
|
||||
|
||||
|
|
@ -462,7 +462,7 @@ private:
|
|||
//==============================================================================
|
||||
void parseSubElements (const XmlPath& xml, DrawableComposite& parentDrawable, bool shouldParseClip = true)
|
||||
{
|
||||
forEachXmlChildElement (*xml, e)
|
||||
for (auto* e : xml->getChildIterator())
|
||||
{
|
||||
const XmlPath child (xml.getChild (e));
|
||||
|
||||
|
|
@ -830,7 +830,7 @@ private:
|
|||
|
||||
if (fillXml.xml != nullptr)
|
||||
{
|
||||
forEachXmlChildElementWithTagName (*fillXml, e, "stop")
|
||||
for (auto* e : fillXml->getChildWithTagNameIterator ("stop"))
|
||||
{
|
||||
auto col = parseColour (fillXml.getChild (e), "stop-color", Colours::black);
|
||||
|
||||
|
|
@ -1080,7 +1080,7 @@ private:
|
|||
auto dc = new DrawableComposite();
|
||||
setCommonAttributes (*dc, xml);
|
||||
|
||||
forEachXmlChildElement (*xml, e)
|
||||
for (auto* e : xml->getChildIterator())
|
||||
{
|
||||
if (e->isTextElement())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue