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
|
|
@ -27,7 +27,8 @@ CardDatabase::CardDatabase(QObject *parent,
|
|||
ICardPreferenceProvider *prefs,
|
||||
ICardDatabasePathProvider *pathProvider,
|
||||
ICardSetPriorityController *_setPriorityController)
|
||||
: QObject(parent), setPriorityController(_setPriorityController), loadStatus(NotLoaded)
|
||||
: QObject(parent), setPriorityController(_setPriorityController), loadStatus(NotLoaded),
|
||||
querier(this, prefs)
|
||||
{
|
||||
qRegisterMetaType<CardInfoPtr>("CardInfoPtr");
|
||||
qRegisterMetaType<CardInfoPtr>("CardSetPtr");
|
||||
|
|
@ -44,8 +45,6 @@ CardDatabase::CardDatabase(QObject *parent,
|
|||
// that cross-thread loads are delivered via the event loop while same-thread/
|
||||
// synchronous callers get the swap immediately.
|
||||
connect(loader, &CardDatabaseLoader::databaseDataReady, this, &CardDatabase::swapInDatabaseData);
|
||||
|
||||
querier = new CardDatabaseQuerier(this, this, prefs);
|
||||
}
|
||||
|
||||
CardDatabase::~CardDatabase()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue