mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
CLEANUP(contentmodel): Use auto
for insertPosition declaration to
avoid possible narrowing
This commit is contained in:
parent
fbdc4f4881
commit
d03f25437b
@ -673,7 +673,7 @@ void ContentSelectorModel::ContentModel::setNonUserContent(const QStringList& fi
|
||||
for (auto* file : mFiles)
|
||||
file->setFromAnotherConfigFile(mNonUserContent.contains(file->fileName().toLower()));
|
||||
|
||||
int insertPosition
|
||||
auto insertPosition
|
||||
= std::ranges::find_if(mFiles, [](const EsmFile* file) { return !file->builtIn(); }) - mFiles.begin();
|
||||
|
||||
for (const auto& filepath : fileList)
|
||||
|
Loading…
Reference in New Issue
Block a user