aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/compiler/qv4compileddata_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-07-04 12:26:22 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-07-05 16:30:51 +0200
commitda7547080b83b4d2f2b6eb12e92afa3ff60ee295 (patch)
tree67f0d90a9c6ed2b8e8a5bd67f45c7759d48f49f3 /src/qml/compiler/qv4compileddata_p.h
parentf51835592e65a9e2ebeb86f7b2d4990202f8377b (diff)
Internal API cleanup
Fold the only member of Property::Flags into a straight boolean (bit) member. This makes the code easier to read. Change-Id: Ib621952cf5b28ce8de6293bff4ca9ebb1290fb36 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/compiler/qv4compileddata_p.h')
-rw-r--r--src/qml/compiler/qv4compileddata_p.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/qml/compiler/qv4compileddata_p.h b/src/qml/compiler/qv4compileddata_p.h
index 1656fd84aa..9123f9f0ec 100644
--- a/src/qml/compiler/qv4compileddata_p.h
+++ b/src/qml/compiler/qv4compileddata_p.h
@@ -645,14 +645,10 @@ struct Property
Vector2D, Vector3D, Vector4D, Matrix4x4, Quaternion,
Custom, CustomList };
- enum Flags : unsigned int {
- IsReadOnly = 0x1
- };
-
quint32_le nameIndex;
union {
quint32_le_bitfield<0, 31> type;
- quint32_le_bitfield<31, 1> flags; // readonly
+ quint32_le_bitfield<31, 1> isReadOnly;
};
quint32_le customTypeNameIndex; // If type >= Custom
Location location;