From d03f25437bee3bda045d07c3a5c90942f49b53ab Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Sun, 23 Jun 2024 20:06:23 -0500 Subject: [PATCH] CLEANUP(contentmodel): Use `auto` for insertPosition declaration to avoid possible narrowing --- components/contentselector/model/contentmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/contentselector/model/contentmodel.cpp b/components/contentselector/model/contentmodel.cpp index 0fa1a64266..06248bf0af 100644 --- a/components/contentselector/model/contentmodel.cpp +++ b/components/contentselector/model/contentmodel.cpp @@ -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)