mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 12:54:10 -07:00
Make forEachCard const
This commit is contained in:
parent
a405758222
commit
3a350459d8
2 changed files with 2 additions and 2 deletions
|
|
@ -722,7 +722,7 @@ void DeckList::refreshDeckHash()
|
||||||
/**
|
/**
|
||||||
* Calls a given function on each card in the deck.
|
* 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
|
// Support for this is only possible if the internal structure
|
||||||
// doesn't get more complicated.
|
// doesn't get more complicated.
|
||||||
|
|
|
||||||
|
|
@ -315,7 +315,7 @@ public:
|
||||||
*
|
*
|
||||||
* @param func Function taking (zone node, card node).
|
* @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
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue