aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-09-13 16:13:21 +0200
committerUlf Hermann <ulf.hermann@qt.io>2022-09-14 13:50:46 +0200
commit8f00b65d753db647b49f551319b04819e9e4e882 (patch)
tree151d8372609c9d931650b26c61cb0b541e03f055 /src/qml/qml/qqml.cpp
parent584f674811f87218dedd95be19525061e378f191 (diff)
Qml: use an enum for the registration struct versions
This way we can see more easily what we're checking for. Change-Id: I44b16e8b71ec967b736a4fe5fe0fcbdf28692b90 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index 200c2f7b71..7cd61e3f8d 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -144,7 +144,7 @@ int qmlRegisterUncreatableMetaObject(const QMetaObject &staticMetaObject,
const QString& reason)
{
QQmlPrivate::RegisterType type = {
- 0,
+ QQmlPrivate::RegisterType::CurrentVersion,
QMetaType(),
QMetaType(),
0,
@@ -472,7 +472,7 @@ int QQmlPrivate::qmlregister(RegistrationType type, void *data)
}
RegisterType typeRevision = {
- 1,
+ QQmlPrivate::RegisterType::CurrentVersion,
type.typeId,
type.listId,
creatable ? type.objectSize : 0,