mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-16 23:42:15 -07:00
join declaration and assignment
This commit is contained in:
parent
6003464ccd
commit
9f4c98d0f4
1 changed files with 7 additions and 15 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue