From beb7dd5f14bf683f89f087acd182c73cad288ee7 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 27 Mar 2012 10:08:12 +0200 Subject: QUuid: mark as Q_PRIMITIVE_TYPE Commit 01674860ac85a42eb152092c6e99f7ad03346977 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 Reviewed-by: Denis Dzyubenko --- src/corelib/plugin/quuid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/corelib') diff --git a/src/corelib/plugin/quuid.h b/src/corelib/plugin/quuid.h index dee97d93a5..0538b93c36 100644 --- a/src/corelib/plugin/quuid.h +++ b/src/corelib/plugin/quuid.h @@ -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 &); -- cgit v1.2.3