forked from qt-creator/qt-creator
qmljs: Remove foreach usage
Task-number: QTCREATORBUG-27464 Change-Id: Ifdb8cf514dfe328e0a64bde1beff3e63a4b7fbc3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: hjk <hjk@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -107,7 +107,7 @@ bool JsonCheck::visit(ObjectPattern *ast)
|
||||
}
|
||||
|
||||
QStringList missing;
|
||||
foreach (const QString &property, properties) {
|
||||
for (const QString &property : properties) {
|
||||
if (!propertiesFound.contains(property)) {
|
||||
m_schema->enterNestedPropertySchema(property);
|
||||
if (m_schema->required())
|
||||
|
||||
Reference in New Issue
Block a user