mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-19 08:52:15 -07:00
rename
This commit is contained in:
parent
9fd67f621b
commit
1622957af8
2 changed files with 4 additions and 4 deletions
|
|
@ -927,7 +927,7 @@ bool DeckList::deleteNode(AbstractDecklistNode *node, InnerDecklistNode *rootNod
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static QString calculateDeckHash(const InnerDecklistNode *root)
|
static QString computeDeckHash(const InnerDecklistNode *root)
|
||||||
{
|
{
|
||||||
QStringList cardList;
|
QStringList cardList;
|
||||||
QSet<QString> hashZones, optionalZones;
|
QSet<QString> hashZones, optionalZones;
|
||||||
|
|
@ -958,7 +958,7 @@ static QString calculateDeckHash(const InnerDecklistNode *root)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the deck hash.
|
* Gets the deck hash.
|
||||||
* The hash is calculated on the first call to this method, and will be cached until the decklist is modified.
|
* The hash is computed on the first call to this method, and is cached until the decklist is modified.
|
||||||
*
|
*
|
||||||
* @return The deck hash
|
* @return The deck hash
|
||||||
*/
|
*/
|
||||||
|
|
@ -968,7 +968,7 @@ QString DeckList::getDeckHash() const
|
||||||
return cachedDeckHash;
|
return cachedDeckHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
cachedDeckHash = calculateDeckHash(root);
|
cachedDeckHash = computeDeckHash(root);
|
||||||
return cachedDeckHash;
|
return cachedDeckHash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -261,7 +261,7 @@ private:
|
||||||
InnerDecklistNode *getZoneObjFromName(const QString &zoneName);
|
InnerDecklistNode *getZoneObjFromName(const QString &zoneName);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Empty string indicates invalid cache.
|
* Empty string indicates invalidated cache.
|
||||||
*/
|
*/
|
||||||
mutable QString cachedDeckHash;
|
mutable QString cachedDeckHash;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue