forked from qt-creator/qt-creator
QMLPlugins: Remove foreach / Q_FOREACH usage
Task-number: QTCREATORBUG-27464 Change-Id: Ie3e3ec9fdaea856943e5325cabd21e52bf290e70 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -41,7 +41,8 @@ int QmlProfilerNotesModel::addQmlNote(int typeId, int collapsedRow, qint64 start
|
||||
int foundTypeId = -1;
|
||||
int timelineModel = -1;
|
||||
int timelineIndex = -1;
|
||||
foreach (const Timeline::TimelineModel *model, timelineModels()) {
|
||||
const QList<const Timeline::TimelineModel *> models = timelineModels();
|
||||
for (const Timeline::TimelineModel *model : models) {
|
||||
if (model->handlesTypeId(typeId)) {
|
||||
for (int i = model->firstIndex(start); i <= model->lastIndex(start + duration); ++i) {
|
||||
if (i < 0)
|
||||
|
||||
Reference in New Issue
Block a user