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-11 12:56:22 +0200
commit36ebee4e69182f0e44d87691d4740b271e1dcf38 (patch)
treec6f38a2fbef397775d3c8e0031e570fbacd302be /src/qmlcompiler/qqmljsfunctioninitializer.cpp
parentdea6ba50377df75046625abb0128e0250c01b2c9 (diff)
QML: Port QV4::CompiledData::Binding to new special integer bitfield
Pick-to: 5.15 6.2 6.3 Task-number: QTBUG-99545 Change-Id: I9f8bc5fa45c61f77ee95b055a3d8de001da8f8c5 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
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);
}