Make forEachCard const

This commit is contained in:
RickyRister 2025-11-17 00:31:16 -08:00
parent a405758222
commit 3a350459d8
2 changed files with 2 additions and 2 deletions

View file

@ -722,7 +722,7 @@ void DeckList::refreshDeckHash()
/**
* Calls a given function on each card in the deck.
*/
void DeckList::forEachCard(const std::function<void(InnerDecklistNode *, DecklistCardNode *)> &func)
void DeckList::forEachCard(const std::function<void(InnerDecklistNode *, DecklistCardNode *)> &func) const
{
// Support for this is only possible if the internal structure
// doesn't get more complicated.

View file

@ -315,7 +315,7 @@ public:
*
* @param func Function taking (zone node, card node).
*/
void forEachCard(const std::function<void(InnerDecklistNode *, DecklistCardNode *)> &func);
void forEachCard(const std::function<void(InnerDecklistNode *, DecklistCardNode *)> &func) const;
};
#endif