CLEANUP(contentmodel): Use `auto` for insertPosition declaration to

avoid possible narrowing
pull/3236/head
Dave Corley 6 months ago
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…
Cancel
Save