QUuid: use NSDMI to initialize the members

Change-Id: Id8e48e8f498c4a029619fffd172893c31bb0aba1
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
This commit is contained in:
Thiago Macieira 2022-11-17 20:35:28 -08:00
parent 047c0f0060
commit c3c5d2cab0
1 changed files with 5 additions and 5 deletions

View File

@ -55,7 +55,7 @@ public:
Id128 = 3
};
constexpr QUuid() noexcept : data1(0), data2(0), data3(0), data4{0,0,0,0,0,0,0,0} {}
constexpr QUuid() noexcept {}
constexpr QUuid(uint l, ushort w1, ushort w2, uchar b1, uchar b2, uchar b3,
uchar b4, uchar b5, uchar b6, uchar b7, uchar b8) noexcept
@ -158,10 +158,10 @@ public:
NSUUID *toNSUUID() const Q_DECL_NS_RETURNS_AUTORELEASED;
#endif
uint data1;
ushort data2;
ushort data3;
uchar data4[8];
uint data1 = 0;
ushort data2 = 0;
ushort data3 = 0;
uchar data4[8] = {};
};
Q_DECLARE_TYPEINFO(QUuid, Q_PRIMITIVE_TYPE);