Revert "Try Clazy fix-its"

Segfault on old Qt versions!
This reverts commit dba7caed30.
This commit is contained in:
Laurent Trinques
2025-02-14 16:17:58 +01:00
parent dba7caed30
commit 43f0107eb1
88 changed files with 409 additions and 512 deletions

View File

@@ -779,8 +779,7 @@ void ElementsCollectionWidget::search()
const QStringList text_list = text.split("+", Qt::SkipEmptyParts);
#endif
QModelIndexList match_index;
for (const QString& txt : text_list)
{
for (QString txt : text_list) {
match_index << m_model->match(m_showed_index.isValid()
? m_model->index(0,0,m_showed_index)
: m_model->index(0,0),
@@ -791,7 +790,7 @@ void ElementsCollectionWidget::search()
| Qt::MatchRecursive);
}
for (QModelIndex index : std::as_const(match_index))
for(QModelIndex index : match_index)
showAndExpandItem(index);
}