diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2022-11-17 20:35:28 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-12-16 10:29:09 -0800 |
commit | c3c5d2cab07ffed1ddfb7978870c05917d89fa39 (patch) | |
tree | af11945fe4fc0377cc7baaf78477e0b6f8acf369 /src/corelib/plugin/quuid.h | |
parent | 047c0f00606423cbd071559579b3056b03d45d4e (diff) |
QUuid: use NSDMI to initialize the members
Change-Id: Id8e48e8f498c4a029619fffd172893c31bb0aba1
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Diffstat (limited to 'src/corelib/plugin/quuid.h')
-rw-r--r-- | src/corelib/plugin/quuid.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h index 64aa891ba1..bcd78d85e7 100644 --- a/src/corelib/plugin/quuid.h +++ b/src/corelib/plugin/quuid.h @@ -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); |