mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-21 01:42:15 -07:00
Minor cleanup
This commit is contained in:
parent
4a75eac3d3
commit
0ea29b1eb3
2 changed files with 2 additions and 2 deletions
|
|
@ -332,7 +332,7 @@ static QXmlStreamWriter &operator<<(QXmlStreamWriter &xml, const CardInfoPtr &in
|
||||||
// sets
|
// sets
|
||||||
const CardInfoPerSetMap sets = info->getSets();
|
const CardInfoPerSetMap sets = info->getSets();
|
||||||
for (const auto &cardInfoPerSetList : sets) {
|
for (const auto &cardInfoPerSetList : sets) {
|
||||||
for (const CardInfoPerSet& set : cardInfoPerSetList) {
|
for (const CardInfoPerSet &set : cardInfoPerSetList) {
|
||||||
xml.writeStartElement("set");
|
xml.writeStartElement("set");
|
||||||
xml.writeAttribute("rarity", set.getProperty("rarity"));
|
xml.writeAttribute("rarity", set.getProperty("rarity"));
|
||||||
xml.writeAttribute("muId", set.getProperty("muid"));
|
xml.writeAttribute("muId", set.getProperty("muid"));
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@ static QXmlStreamWriter &operator<<(QXmlStreamWriter &xml, const CardInfoPtr &in
|
||||||
for (const auto &cardInfoPerSetList : info->getSets()) {
|
for (const auto &cardInfoPerSetList : info->getSets()) {
|
||||||
for (const CardInfoPerSet &set : cardInfoPerSetList) {
|
for (const CardInfoPerSet &set : cardInfoPerSetList) {
|
||||||
xml.writeStartElement("set");
|
xml.writeStartElement("set");
|
||||||
for (const QString& propName : set.getProperties()) {
|
for (const QString &propName : set.getProperties()) {
|
||||||
xml.writeAttribute(propName, set.getProperty(propName));
|
xml.writeAttribute(propName, set.getProperty(propName));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue