Static helpers.

Took 2 minutes


Took 29 seconds
This commit is contained in:
Lukas Brübach 2025-12-16 08:24:08 +01:00
parent 64bb5355ff
commit caeab4718c
3 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@
#define ARCHIDEKT_DEFAULT_IMAGE "https://storage.googleapis.com/topdekt-user/images/archidekt_deck_card_shadow.jpg"
QString timeAgo(const QString &timestamp)
static QString timeAgo(const QString &timestamp)
{
QDateTime dt = QDateTime::fromString(timestamp, Qt::ISODate);

View file

@ -164,7 +164,7 @@ bool DeckList::readElement(QXmlStreamReader *xml)
return true;
}
void writeMetadata(QXmlStreamWriter *xml, const DeckList::Metadata &metadata)
static void writeMetadata(QXmlStreamWriter *xml, const DeckList::Metadata &metadata)
{
xml->writeTextElement("lastLoadedTimestamp", metadata.lastLoadedTimestamp);
xml->writeTextElement("deckname", metadata.name);

View file

@ -622,7 +622,7 @@ bool DeckListModel::isCardLegalForCurrentFormat(const CardInfoPtr cardInfo)
return true;
}
int maxAllowedForLegality(const FormatRules &format, const QString &legality)
static int maxAllowedForLegality(const FormatRules &format, const QString &legality)
{
for (const AllowedCount &c : format.allowedCounts) {
if (c.label == legality) {