[Fix-Warnings] Replace types with auto for libcockatrice/models/ files

This commit is contained in:
Brübach, Lukas 2025-11-28 22:35:19 +01:00
parent 799a4368ba
commit 9d7b25ec09
3 changed files with 11 additions and 11 deletions

View file

@ -44,7 +44,7 @@ void CardSearchModel::updateSearchResults(const QString &query)
for (int i = 0; i < sourceModel->rowCount(); ++i) {
QModelIndex modelIndex = sourceModel->index(i, 0);
QModelIndex sourceIndex = sourceModel->mapToSource(modelIndex);
CardDatabaseModel *sourceDbModel = qobject_cast<CardDatabaseModel *>(sourceModel->sourceModel());
auto *sourceDbModel = qobject_cast<CardDatabaseModel *>(sourceModel->sourceModel());
if (!sourceDbModel || !sourceIndex.isValid())
return;