mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-12 04:50:01 -08:00
[CardDatabase] Store querier not as pointer
This commit is contained in:
parent
3931447729
commit
598da954fc
6 changed files with 10 additions and 16 deletions
|
|
@ -25,19 +25,17 @@ struct CardRef;
|
|||
* (e.g., CardInfoPtr, ExactCard, and PrintingInfo) from a CardDatabase. It also applies user
|
||||
* printing preferences via ICardPreferenceProvider when determining preferred printings.
|
||||
*/
|
||||
class CardDatabaseQuerier : public QObject
|
||||
class CardDatabaseQuerier
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
/**
|
||||
* @brief Constructs a CardDatabaseQuerier.
|
||||
*
|
||||
* @param parent Parent QObject.
|
||||
* @param db Pointer to the CardDatabase used for lookups.
|
||||
* @param prefs Pointer to card preference provider which supplies user-preference for printings.
|
||||
*/
|
||||
explicit CardDatabaseQuerier(QObject *parent, const CardDatabase *db, const ICardPreferenceProvider *prefs);
|
||||
explicit CardDatabaseQuerier(const CardDatabase *db, const ICardPreferenceProvider *prefs);
|
||||
|
||||
/**
|
||||
* @brief Retrieves a card by its exact name.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue