CLEANUP(contentmodel): Actually, no, I hate while loops

pull/3236/head
Dave Corley 6 months ago
parent b43743212e
commit 40aee53831

@ -674,8 +674,12 @@ void ContentSelectorModel::ContentModel::setNonUserContent(const QStringList& fi
int insertPosition = 0;
while (insertPosition < mFiles.size() && mFiles.at(insertPosition)->builtIn())
for (auto* file : mFiles)
{
if (!file->builtIn())
break;
++insertPosition;
}
for (const auto& filepath : fileList)
{

Loading…
Cancel
Save