QUuid: mark as Q_PRIMITIVE_TYPE

Commit 01674860ac marked
QUuid as Q_MOVABLE_TYPE, but it's even primitive:
Every bit pattern represents a valid QUuid object (if
not a valid UUID), and memcpy() can be used to obtain
a valid, independent copy of the object.

It might not be a POD, but its close enough.

Change-Id: I0fd2d11472590688a91e9ee424732e4d5ba15df8
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
This commit is contained in:
Marc Mutz 2012-03-27 10:08:12 +02:00 committed by Qt by Nokia
parent 5e82bb9e6f
commit beb7dd5f14

View File

@ -200,7 +200,7 @@ public:
uchar data4[8];
};
Q_DECLARE_TYPEINFO(QUuid, Q_MOVABLE_TYPE);
Q_DECLARE_TYPEINFO(QUuid, Q_PRIMITIVE_TYPE);
#ifndef QT_NO_DATASTREAM
Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QUuid &);