mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -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
|
|
@ -15,10 +15,8 @@
|
|||
#include <iterator>
|
||||
#include <qnamespace.h>
|
||||
|
||||
CardDatabaseQuerier::CardDatabaseQuerier(QObject *_parent,
|
||||
const CardDatabase *_db,
|
||||
const ICardPreferenceProvider *prefs)
|
||||
: QObject(_parent), db(_db), prefs(prefs)
|
||||
CardDatabaseQuerier::CardDatabaseQuerier(const CardDatabase *_db, const ICardPreferenceProvider *prefs)
|
||||
: db(_db), prefs(prefs)
|
||||
{
|
||||
// Invalidate the cached count maps whenever the database contents change.
|
||||
connect(db, &CardDatabase::cardAdded, this, &CardDatabaseQuerier::invalidateCaches);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue