[TabDeckEditor] Refactor: Remove cardDatabase field from analysis interfaces (#6963)

* [TabDeckEditor] Refactor: Remove cardDatabase field from analysis interfaces

* update includes
This commit is contained in:
RickyRister 2026-06-03 10:08:57 -07:00 committed by GitHub
parent 46d3b820db
commit f37c418865
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 14 additions and 18 deletions

View file

@ -538,14 +538,14 @@ void AbstractTabDeckEditor::actExportDeckDecklistXyz()
/** @brief Analyzes the deck using DeckStats. */
void AbstractTabDeckEditor::actAnalyzeDeckDeckstats()
{
auto *interface = new DeckStatsInterface(*cardDatabaseDockWidget->getDatabase(), this);
auto *interface = new DeckStatsInterface(this);
interface->analyzeDeck(deckStateManager->getDeckList());
}
/** @brief Analyzes the deck using TappedOut. */
void AbstractTabDeckEditor::actAnalyzeDeckTappedout()
{
auto *interface = new TappedOutInterface(*cardDatabaseDockWidget->getDatabase(), this);
auto *interface = new TappedOutInterface(this);
interface->analyzeDeck(deckStateManager->getDeckList());
}