mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 01:12:15 -07:00
Lint some stuff.
This commit is contained in:
parent
6fd3fd55a9
commit
238a6266d6
5 changed files with 41 additions and 11 deletions
|
|
@ -432,8 +432,8 @@ bool DeckList::readElement(QXmlStreamReader *xml)
|
|||
bannerCard = QPair<QString, QString>(cardName, providerId);
|
||||
} else if (childName == "tags") {
|
||||
tags.clear(); // Clear existing tags
|
||||
while (!(xml->isEndElement() && childName == "tags")) {
|
||||
if (xml->readNextStartElement() && childName == "tag") {
|
||||
while (xml->readNextStartElement()) {
|
||||
if (xml->name().toString() == "tag") {
|
||||
tags.append(xml->readElementText());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue