Minor cleanup

This commit is contained in:
ZeldaZach 2024-12-01 11:59:22 -05:00
parent 4a75eac3d3
commit 0ea29b1eb3
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -332,7 +332,7 @@ static QXmlStreamWriter &operator<<(QXmlStreamWriter &xml, const CardInfoPtr &in
// sets
const CardInfoPerSetMap sets = info->getSets();
for (const auto &cardInfoPerSetList : sets) {
for (const CardInfoPerSet& set : cardInfoPerSetList) {
for (const CardInfoPerSet &set : cardInfoPerSetList) {
xml.writeStartElement("set");
xml.writeAttribute("rarity", set.getProperty("rarity"));
xml.writeAttribute("muId", set.getProperty("muid"));

View file

@ -287,7 +287,7 @@ static QXmlStreamWriter &operator<<(QXmlStreamWriter &xml, const CardInfoPtr &in
for (const auto &cardInfoPerSetList : info->getSets()) {
for (const CardInfoPerSet &set : cardInfoPerSetList) {
xml.writeStartElement("set");
for (const QString& propName : set.getProperties()) {
for (const QString &propName : set.getProperties()) {
xml.writeAttribute(propName, set.getProperty(propName));
}