From 401b515626c46d915a8394a98fbe95cf1c6f4aa4 Mon Sep 17 00:00:00 2001 From: Maximilian Goldstein Date: Wed, 12 May 2021 13:23:59 +0200 Subject: qmllint: Utilize qjsroot.qmltypes Previously for some types like QString, QDateTime and QRegularExpression and others there was no sensible type information available. Now that we have qjsroot.qmltypes we can refer to its type information in order to resolve these types. Change-Id: Iea88cf467c694299396630e0f180ca6ff4ca3847 Reviewed-by: Ulf Hermann --- tools/qmllint/checkidentifiers.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'tools') diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp index 66903c29a8..72e0d6fd7d 100644 --- a/tools/qmllint/checkidentifiers.cpp +++ b/tools/qmllint/checkidentifiers.cpp @@ -87,9 +87,6 @@ void CheckIdentifiers::checkMemberAccess(const QVector &members, if (prop != nullptr && prop->isList()) { detectedRestrictiveKind = QLatin1String("list"); expectedNext.append(QLatin1String("length")); - } else if (outerScope->internalName() == QLatin1String("QString")) { - detectedRestrictiveKind = QLatin1String("QString"); - expectedNext.append(QLatin1String("length")); } QQmlJSScope::ConstPtr scope = outerScope; @@ -136,13 +133,6 @@ void CheckIdentifiers::checkMemberAccess(const QVector &members, continue; } - if (typeName == QLatin1String("QString")) { - detectedRestrictiveKind = typeName; - detectedRestrictiveName = access.m_name; - expectedNext.append(QLatin1String("length")); - continue; - } - if (access.m_parentType.isEmpty()) { if (binding.hasValue()) scope = binding.value(); -- cgit v1.2.3