mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Mark functions as [[nodiscard]]
Took 31 minutes
This commit is contained in:
parent
1fb08b76f5
commit
ec62f61be9
64 changed files with 258 additions and 255 deletions
|
|
@ -101,7 +101,7 @@ public:
|
|||
void clear();
|
||||
|
||||
/** @brief Returns the map of cards by name. */
|
||||
const CardNameMap &getCardList() const
|
||||
[[nodiscard]] const CardNameMap &getCardList() const
|
||||
{
|
||||
return cards;
|
||||
}
|
||||
|
|
@ -114,16 +114,16 @@ public:
|
|||
CardSetPtr getSet(const QString &setName);
|
||||
|
||||
/** @brief Returns a list of all sets in the database. */
|
||||
CardSetList getSetList() const;
|
||||
[[nodiscard]] CardSetList getSetList() const;
|
||||
|
||||
/** @brief Returns the current load status. */
|
||||
LoadStatus getLoadStatus() const
|
||||
[[nodiscard]] LoadStatus getLoadStatus() const
|
||||
{
|
||||
return loadStatus;
|
||||
}
|
||||
|
||||
/** @brief Returns the querier for performing card lookups. */
|
||||
CardDatabaseQuerier *query() const
|
||||
[[nodiscard]] CardDatabaseQuerier *query() const
|
||||
{
|
||||
return querier;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ public:
|
|||
* @param cardName Name of the card.
|
||||
* @return The preferred ExactCard.
|
||||
*/
|
||||
ExactCard getPreferredCard(const QString &cardName) const;
|
||||
[[nodiscard]] ExactCard getPreferredCard(const QString &cardName) const;
|
||||
|
||||
/**
|
||||
* @brief Returns the preferred printing of a card based on user preferences and set priority.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue