1
0
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:
Dave Corley 2024-06-23 20:06:23 -05:00
parent fbdc4f4881
commit d03f25437b

View File

@ -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)