[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;

View file

@ -118,7 +118,7 @@ QMimeData *SetsModel::mimeData(const QModelIndexList &indexes) const
if (indexes.isEmpty())
return 0;
SetsMimeData *result = new SetsMimeData(indexes[0].row());
auto *result = new SetsMimeData(indexes[0].row());
return qobject_cast<QMimeData *>(result);
}