1
0
Fork 0
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:
reuk 2021-01-28 15:22:46 +00:00
parent 40f6ac7c47
commit 3baaad8b5b
No known key found for this signature in database
GPG key ID: 9ADCD339CFC98A11
27 changed files with 42 additions and 42 deletions

View file

@ -339,7 +339,7 @@ String AudioDeviceManager::initialiseFromXML (const XmlElement& xml,
midiDeviceInfosFromXml.clear();
enabledMidiInputs.clear();
forEachXmlChildElementWithTagName (xml, c, "MIDIINPUT")
for (auto* c : xml.getChildWithTagNameIterator ("MIDIINPUT"))
midiDeviceInfosFromXml.add ({ c->getStringAttribute ("name"), c->getStringAttribute ("identifier") });
auto isIdentifierAvailable = [] (const Array<MidiDeviceInfo>& available, const String& identifier)