diff --git a/common/decklist.cpp b/common/decklist.cpp index 5ba3f154a..cf1240d8a 100644 --- a/common/decklist.cpp +++ b/common/decklist.cpp @@ -927,7 +927,7 @@ bool DeckList::deleteNode(AbstractDecklistNode *node, InnerDecklistNode *rootNod return false; } -static QString calculateDeckHash(const InnerDecklistNode *root) +static QString computeDeckHash(const InnerDecklistNode *root) { QStringList cardList; QSet hashZones, optionalZones; @@ -958,7 +958,7 @@ static QString calculateDeckHash(const InnerDecklistNode *root) /** * 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 */ @@ -968,7 +968,7 @@ QString DeckList::getDeckHash() const return cachedDeckHash; } - cachedDeckHash = calculateDeckHash(root); + cachedDeckHash = computeDeckHash(root); return cachedDeckHash; } diff --git a/common/decklist.h b/common/decklist.h index f71681e02..8acbd4945 100644 --- a/common/decklist.h +++ b/common/decklist.h @@ -261,7 +261,7 @@ private: InnerDecklistNode *getZoneObjFromName(const QString &zoneName); /** - * Empty string indicates invalid cache. + * Empty string indicates invalidated cache. */ mutable QString cachedDeckHash;