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:
@@ -130,7 +130,8 @@ bool DataProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_
|
||||
// check if the function from this index is a child of (called by) the filter function
|
||||
if (m_function) {
|
||||
bool isValid = false;
|
||||
foreach (const FunctionCall *call, func->incomingCalls()) {
|
||||
const QVector<const FunctionCall *> calls = func->incomingCalls();
|
||||
for (const FunctionCall *call : calls) {
|
||||
if (call->caller() == m_function) {
|
||||
isValid = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user