Skip to content

Commit

Permalink
CLEANUP(contentmodel): Use auto for insertPosition declaration to
Browse files Browse the repository at this point in the history
avoid possible narrowing
  • Loading branch information
magicaldave committed Jun 24, 2024
1 parent fbdc4f4 commit d03f254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/contentselector/model/contentmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d03f254

Please sign in to comment.