aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsfunctioninitializer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmlcompiler/qqmljsfunctioninitializer.cpp')
-rw-r--r--src/qmlcompiler/qqmljsfunctioninitializer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/qmlcompiler/qqmljsfunctioninitializer.cpp b/src/qmlcompiler/qqmljsfunctioninitializer.cpp
index 99e952da82..91a6de790d 100644
--- a/src/qmlcompiler/qqmljsfunctioninitializer.cpp
+++ b/src/qmlcompiler/qqmljsfunctioninitializer.cpp
@@ -46,7 +46,7 @@ using namespace Qt::StringLiterals;
* signature and the QML scope and doesn't visit the byte code.
*/
-static QString bindingTypeDescription(QmlIR::Binding::ValueType type)
+static QString bindingTypeDescription(QmlIR::Binding::Type type)
{
switch (type) {
case QmlIR::Binding::Type_Invalid:
@@ -150,9 +150,9 @@ QQmlJSCompilePass::Function QQmlJSFunctionInitializer::run(
QQmlJSCompilePass::Function function;
function.qmlScope = m_scopeType;
- if (irBinding.type != QmlIR::Binding::Type_Script) {
+ if (irBinding.type() != QmlIR::Binding::Type_Script) {
diagnose(u"Binding is not a script binding, but %1."_s.arg(
- bindingTypeDescription(QmlIR::Binding::ValueType(quint32(irBinding.type)))),
+ bindingTypeDescription(QmlIR::Binding::Type(quint32(irBinding.type())))),
QtDebugMsg, bindingLocation, error);
}