diff options
author | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-09 16:49:32 +0100 |
---|---|---|
committer | Benjamin Dobell <benjamin.dobell+git@glassechidna.com.au> | 2015-03-09 16:53:28 +0100 |
commit | 6971b49f85d9ddeb2da968a594d65affec3d2b44 (patch) | |
tree | 620c821e72045b3b547982efb3d068d5354de9ce /heimdall-frontend/source/FirmwareInfo.cpp | |
parent | Completed basic firmware file selection functionality (diff) | |
download | Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.tar Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.tar.gz Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.tar.bz2 Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.tar.lz Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.tar.xz Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.tar.zst Heimdall-6971b49f85d9ddeb2da968a594d65affec3d2b44.zip |
Diffstat (limited to 'heimdall-frontend/source/FirmwareInfo.cpp')
-rw-r--r-- | heimdall-frontend/source/FirmwareInfo.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/heimdall-frontend/source/FirmwareInfo.cpp b/heimdall-frontend/source/FirmwareInfo.cpp index c01d636..7a1043c 100644 --- a/heimdall-frontend/source/FirmwareInfo.cpp +++ b/heimdall-frontend/source/FirmwareInfo.cpp @@ -720,10 +720,10 @@ void FirmwareInfo::WriteXml(QXmlStreamWriter& xml) const xml.writeStartElement("developers"); - for (int i = 0; i < developers.length(); i++) + for (const QString& developer : developers) { xml.writeStartElement("name"); - xml.writeCharacters(developers[i]); + xml.writeCharacters(developer); xml.writeEndElement(); } @@ -745,8 +745,10 @@ void FirmwareInfo::WriteXml(QXmlStreamWriter& xml) const xml.writeStartElement("devices"); - for (int i = 0; i < deviceInfos.length(); i++) - deviceInfos[i].WriteXml(xml); + for (const DeviceInfo& deviceInfo : deviceInfos) + { + deviceInfo.WriteXml(xml); + } xml.writeEndElement(); |