mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-07 18:43:26 -08:00
[Build] Fix toolchain rot: const PlayerReference comparison, static writeMetadata
This commit is contained in:
parent
fdbc4734a4
commit
7a4cfa5685
2 changed files with 2 additions and 2 deletions
|
|
@ -166,7 +166,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);
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ public:
|
|||
{
|
||||
return playerId;
|
||||
}
|
||||
bool operator==(const PlayerReference &other)
|
||||
bool operator==(const PlayerReference &other) const
|
||||
{
|
||||
return ((roomId == other.roomId) && (gameId == other.gameId) && (playerId == other.playerId));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue