forked from qt-creator/qt-creator
Valgrind: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Ia507fb7aab405226a954b6059ef326e999a8171a Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -100,7 +100,7 @@ QList<QAction *> MemcheckErrorView::customActions() const
|
||||
QTC_ASSERT(!indizes.isEmpty(), return actions);
|
||||
|
||||
bool hasErrors = false;
|
||||
foreach (const QModelIndex &index, indizes) {
|
||||
for (const QModelIndex &index : indizes) {
|
||||
Error error = model()->data(index, ErrorListModel::ErrorRole).value<Error>();
|
||||
if (!error.suppression().isNull()) {
|
||||
hasErrors = true;
|
||||
|
||||
Reference in New Issue
Block a user