aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/qmlcompiler/qqmlsa.cpp2
-rw-r--r--src/qmlcompiler/qqmlsaconstants.h2
-rw-r--r--tests/auto/qml/qmllint/lintplugin.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/qmlcompiler/qqmlsa.cpp b/src/qmlcompiler/qqmlsa.cpp
index 67789ea974..fc111c8dae 100644
--- a/src/qmlcompiler/qqmlsa.cpp
+++ b/src/qmlcompiler/qqmlsa.cpp
@@ -245,7 +245,7 @@ Element QQmlSA::Binding::literalType(const QQmlJSTypeResolver *resolver) const
bool Binding::hasUndefinedScriptValue() const
{
const auto &jsBinding = BindingPrivate::binding(*this);
- return jsBinding.bindingType() == Script
+ return jsBinding.bindingType() == BindingType::Script
&& jsBinding.scriptValueType() == ScriptValue_Undefined;
}
diff --git a/src/qmlcompiler/qqmlsaconstants.h b/src/qmlcompiler/qqmlsaconstants.h
index a43eeb597e..a0ac124af7 100644
--- a/src/qmlcompiler/qqmlsaconstants.h
+++ b/src/qmlcompiler/qqmlsaconstants.h
@@ -12,7 +12,7 @@ class QQmlJSScope;
namespace QQmlSA {
-enum BindingType : unsigned int {
+enum class BindingType : unsigned int {
Invalid,
BoolLiteral,
NumberLiteral,
diff --git a/tests/auto/qml/qmllint/lintplugin.cpp b/tests/auto/qml/qmllint/lintplugin.cpp
index ee9e0c839d..4666cef0bc 100644
--- a/tests/auto/qml/qmllint/lintplugin.cpp
+++ b/tests/auto/qml/qmllint/lintplugin.cpp
@@ -57,7 +57,7 @@ public:
? u"NULL"_s
: (value.name().isNull() ? value.baseTypeName()
: value.name()))
- .arg(binding.bindingType())
+ .arg(qToUnderlying(binding.bindingType()))
.arg(bindingScope.baseTypeName()),
plugin, bindingScope.sourceLocation());
}