chore(clang-tidy): modernize the code

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97 2026-05-10 23:16:46 +03:00
parent 170d59de2a
commit 1af838db2e
No known key found for this signature in database
GPG key ID: 55EF5DA53DB36318
38 changed files with 1088 additions and 956 deletions

View file

@ -847,7 +847,7 @@ void ResourceFolderModel::onParseFailed(int ticket, const QString& resourceId)
// update index
m_resourcesIndex.clear();
int idx = 0;
for (const auto& mod : qAsConst(m_resources)) {
for (const auto& mod : std::as_const(m_resources)) {
m_resourcesIndex[mod->internalId()] = idx;
idx++;
}
@ -954,7 +954,7 @@ void ResourceFolderModel::applyUpdates(QSet<QString>& currentSet, QSet<QString>&
{
m_resourcesIndex.clear();
int idx = 0;
for (const auto& mod : qAsConst(m_resources)) {
for (const auto& mod : std::as_const(m_resources)) {
m_resourcesIndex[mod->internalId()] = idx;
idx++;
}