join declaration and assignment

This commit is contained in:
RickyRister 2025-04-20 21:38:34 -07:00
parent 6003464ccd
commit 9f4c98d0f4

View file

@ -47,23 +47,15 @@ bool OracleImporter::readSetsFromByteArray(const QByteArray &data)
} }
QListIterator it(setsMap.values()); QListIterator it(setsMap.values());
QVariantMap map;
QString shortName;
QString longName;
QList<QVariant> setCards;
QString setType;
QDate releaseDate;
CardSet::Priority priority;
while (it.hasNext()) { while (it.hasNext()) {
map = it.next().toMap(); QVariantMap map = it.next().toMap();
shortName = map.value("code").toString().toUpper(); QString shortName = map.value("code").toString().toUpper();
longName = map.value("name").toString(); QString longName = map.value("name").toString();
setCards = map.value("cards").toList(); QList<QVariant> setCards = map.value("cards").toList();
setType = map.value("type").toString(); QString setType = map.value("type").toString();
releaseDate = map.value("releaseDate").toDate(); QDate releaseDate = map.value("releaseDate").toDate();
priority = getSetPriority(setType, shortName); CardSet::Priority priority = getSetPriority(setType, shortName);
// capitalize set type // capitalize set type
if (setType.length() > 0) { if (setType.length() > 0) {
// basic grammar for words that aren't capitalized, like in "From the Vault" // basic grammar for words that aren't capitalized, like in "From the Vault"