aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmllint/checkidentifiers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/qmllint/checkidentifiers.cpp')
-rw-r--r--tools/qmllint/checkidentifiers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/qmllint/checkidentifiers.cpp b/tools/qmllint/checkidentifiers.cpp
index 6f28709a87..79a861b4c7 100644
--- a/tools/qmllint/checkidentifiers.cpp
+++ b/tools/qmllint/checkidentifiers.cpp
@@ -98,7 +98,7 @@ static bool walkViaParentAndAttachedScopes(ScopeTree::ConstPtr rootType,
if (visit(type))
return true;
- if (auto superType = allTypes.value(type->superclassName()))
+ if (auto superType = allTypes.value(type->baseTypeName()))
stack.push(superType);
if (auto attachedType = allTypes.value(type->attachedTypeName()))
@@ -137,7 +137,7 @@ bool CheckIdentifiers::checkMemberAccess(const QVector<ScopeTree::FieldMember> &
return false;
}
- const QString scopeName = scope->name().isEmpty() ? scope->className() : scope->name();
+ const QString scopeName = scope->name().isEmpty() ? scope->internalName() : scope->name();
if (!detectedRestrictiveKind.isEmpty()) {
if (expectedNext.contains(access.m_name)) {