mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 03:23:56 -07:00
[CardDatabase] Pass CardInfoPtr by const ref
This commit is contained in:
parent
f28ede7ae3
commit
42ab8d09d2
2 changed files with 8 additions and 8 deletions
|
|
@ -88,7 +88,7 @@ public:
|
|||
* @brief Removes a card from the database.
|
||||
* @param card Pointer to the card to remove.
|
||||
*/
|
||||
void removeCard(CardInfoPtr card);
|
||||
void removeCard(const CardInfoPtr &card);
|
||||
|
||||
/** @brief Clears all cards, sets, and internal state. */
|
||||
void clear();
|
||||
|
|
@ -140,15 +140,15 @@ public slots:
|
|||
* @brief Adds a card to the database.
|
||||
* @param card CardInfoPtr to add.
|
||||
*/
|
||||
void addCard(CardInfoPtr card);
|
||||
void addCard(const CardInfoPtr &card);
|
||||
|
||||
/**
|
||||
* @brief Adds a set to the database.
|
||||
* @param set Pointer to CardSet to add.
|
||||
*/
|
||||
void addSet(CardSetPtr set);
|
||||
void addSet(const CardSetPtr &set);
|
||||
|
||||
void addFormat(FormatRulesPtr format);
|
||||
void addFormat(const FormatRulesPtr &format);
|
||||
|
||||
/** @brief Loads card databases from configured paths. */
|
||||
void loadCardDatabases();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue