aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-01-20 14:27:09 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-01-20 18:41:39 +0100
commit5f0ea7263f42482e43b52cdbe3e5d54a0b78e609 (patch)
treec8320a1acc5693fefc5f44703ddfd337e5d73cd6 /src/qmlcompiler
parent0fb373c9a2ebc31f76b27bfa5c2e59dadefeaf08 (diff)
QQmlJSScope: Fix typo
Change-Id: Idb29a7483b813ed00849c13ef1324c7e931400de Reviewed-by: Andrei Golubev <andrei.golubev@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qmlcompiler')
-rw-r--r--src/qmlcompiler/qqmljsscope.cpp4
-rw-r--r--src/qmlcompiler/qqmljsscope_p.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/qmlcompiler/qqmljsscope.cpp b/src/qmlcompiler/qqmljsscope.cpp
index 85c84420a3..5bca7ffcd4 100644
--- a/src/qmlcompiler/qqmljsscope.cpp
+++ b/src/qmlcompiler/qqmljsscope.cpp
@@ -73,7 +73,7 @@ void QQmlJSScope::insertPropertyIdentifier(const QQmlJSMetaProperty &property)
bool QQmlJSScope::isIdInCurrentScope(const QString &id) const
{
- return isIdInCurrentQMlScopes(id) || isIdInCurrentJSScopes(id);
+ return isIdInCurrentQmlScopes(id) || isIdInCurrentJSScopes(id);
}
bool QQmlJSScope::hasMethod(const QString &name) const
@@ -113,7 +113,7 @@ QList<QQmlJSMetaMethod> QQmlJSScope::methods(const QString &name) const
return results;
}
-bool QQmlJSScope::isIdInCurrentQMlScopes(const QString &id) const
+bool QQmlJSScope::isIdInCurrentQmlScopes(const QString &id) const
{
if (m_scopeType == QQmlJSScope::QMLScope)
return m_properties.contains(id) || m_methods.contains(id) || m_enumerations.contains(id);
diff --git a/src/qmlcompiler/qqmljsscope_p.h b/src/qmlcompiler/qqmljsscope_p.h
index 1902c46263..4e16f45930 100644
--- a/src/qmlcompiler/qqmljsscope_p.h
+++ b/src/qmlcompiler/qqmljsscope_p.h
@@ -238,7 +238,7 @@ public:
void setAccessSemantics(AccessSemantics semantics) { m_semantics = semantics; }
AccessSemantics accessSemantics() const { return m_semantics; }
- bool isIdInCurrentQMlScopes(const QString &id) const;
+ bool isIdInCurrentQmlScopes(const QString &id) const;
bool isIdInCurrentJSScopes(const QString &id) const;
bool isIdInjectedFromSignal(const QString &id) const;