[CardDatabase] Store querier not as pointer

This commit is contained in:
RickyRister 2026-03-26 09:59:38 -07:00 • committed by Lukas Brübach
parent 3931447729
commit 598da954fc
6 changed files with 10 additions and 16 deletions

View file

@ -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()