mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-30 02:20:00 +03:00
chore(clang-tidy): modernize the code
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
parent
170d59de2a
commit
1af838db2e
38 changed files with 1088 additions and 956 deletions
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue