Optimized lookup.

This commit is contained in:
okrc 2022-09-20 11:58:21 +08:00
parent 038fb22cff
commit a20a5b39df
No known key found for this signature in database
GPG Key ID: 193B92A7166BB690
1 changed files with 1 additions and 1 deletions

View File

@ -1742,7 +1742,7 @@ void CSbieView::ClearUserUIConfig(const QMap<QString, CSandBoxPtr> AllBoxes) {
QSet<QString> Temp = m_Collapsed;
foreach(QString Name, m_Collapsed)
{
if (!count_if(m_Groups.begin(), m_Groups.end(),
if (m_Groups.end() == find_if(m_Groups.begin(), m_Groups.end(),
[Name](const QStringList& item)->int { return item.contains(Name); }))
Temp.remove(Name);
}