Commit a10f1468 authored by Méven Car's avatar Méven Car
Browse files

recentlyused: add a few const

NO_CHANGELOG
parent ab2660f2
Pipeline #186895 passed with stage
in 1 minute and 56 seconds
......@@ -200,15 +200,15 @@ void RecentlyUsed::listDir(const QUrl &url)
}
}
auto model = runQuery(url);
const auto model = runQuery(url);
KIO::UDSEntryList udslist;
udslist.reserve(model->rowCount());
for (int row = 0; row < model->rowCount(); ++row) {
QModelIndex index = model->index(row, 0);
QString resource = model->data(index, ResultModel::ResourceRole).toString();
QString mimeType = model->data(index, ResultModel::MimeType).toString();
const QModelIndex index = model->index(row, 0);
const QString resource = model->data(index, ResultModel::ResourceRole).toString();
const QString mimeType = model->data(index, ResultModel::MimeType).toString();
udslist << udsEntryFromResource(resource, mimeType, row);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment