aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmljsfunctioninitializer.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-05-04 15:26:30 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-05-17 11:15:14 +0200
commit530d3749c59971e9ec3a8a333c6783842ebb288e (patch)
tree1fccf496d7852eebcaee6de703eb7b9c112d2293 /src/qmlcompiler/qqmljsfunctioninitializer.cpp
parent8b03ab373660a6ff3df7bcdfc64e0acf6ca10b97 (diff)
QML: Port QV4::CompiledData::Binding to new special integer bitfield
Task-number: QTBUG-99545 Change-Id: I9f8bc5fa45c61f77ee95b055a3d8de001da8f8c5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> (cherry picked from commit 36ebee4e69182f0e44d87691d4740b271e1dcf38)
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 8cd3bb3536..dfc8d9632a 100644
--- a/src/qmlcompiler/qqmljsfunctioninitializer.cpp
+++ b/src/qmlcompiler/qqmljsfunctioninitializer.cpp
@@ -44,7 +44,7 @@ QT_BEGIN_NAMESPACE
* 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:
@@ -142,9 +142,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."_qs.arg(
- bindingTypeDescription(QmlIR::Binding::ValueType(quint32(irBinding.type)))),
+ bindingTypeDescription(irBinding.type())),
QtDebugMsg, bindingLocation, error);
}