Be explicit for pedantic compilers.

This commit is contained in:
Brübach, Lukas 2025-11-24 21:09:37 +01:00
parent 38d3c5f3da
commit 888d37a3ae
5 changed files with 8 additions and 8 deletions

View file

@ -22,15 +22,15 @@ void ArchidektApiResponseCard::fromJson(const QJsonObject &json)
flavor = json.value("flavor").toString();
// TODO but not really important
games = {};
options = {};
games = {""};
options = {""};
scryfallImageHash = json.value("scryfallImageHash").toString();
oracleCard = json.value("oracleCard").toObject();
owned = json.value("owned").toInt();
pinnedStatus = json.value("pinnedStatus").toInt();
rarity = json.value("rarity").toString();
// TODO but not really important
globalCategories = {};
globalCategories = {""};
}
void ArchidektApiResponseCard::debugPrint() const

View file

@ -16,7 +16,7 @@ void ArchidektApiResponseCardEntry::fromJson(const QJsonObject &json)
modifier = json.value("modifier").toString();
quantity = json.value("quantity").toInt();
customCmc = json.value("customCmc").toInt();
removedCategories = {};
removedCategories = {""};
createdAt = json.value("createdAt").toString();
updatedAt = json.value("updatedAt").toString();
deletedAt = json.value("deletedAt").toString();

View file

@ -32,7 +32,7 @@ void ArchidektApiResponseDeck::fromJson(const QJsonObject &json)
categories.append(categoryEntry);
}
deckTags = {};
deckTags = {""};
playgroupDeckUrl = json.value("playgroupDeckUrl").toString();
cardPackage = json.value("cardPackage").toString();
@ -45,7 +45,7 @@ void ArchidektApiResponseDeck::fromJson(const QJsonObject &json)
}
// TODO but not really important
customCards = {};
customCards = {""};
}
void ArchidektApiResponseDeck::debugPrint() const

View file

@ -24,7 +24,7 @@ void ArchidektApiResponseDeckListingContainer::fromJson(const QJsonObject &json)
game = json.value("game").toString();
hasDescription = json.value("hasDescription").toBool();
// TODO
tags = {};
tags = {""};
parentFolderId = json.value("parentFolderId").toInt();
owner.fromJson(json.value("owner").toObject());
cardPackage = json.value("cardPackage").toString();

View file

@ -8,7 +8,7 @@ void ArchidektApiResponseDeckOwner::fromJson(const QJsonObject &json)
moderator = json.value("moderator").toBool();
pledgeLevel = json.value("pledgeLevel").toInt();
// TODO but not really important
roles = {};
roles = {""};
}
void ArchidektApiResponseDeckOwner::debugPrint() const