summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-03-27 10:08:12 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-02 18:32:45 +0200
commitbeb7dd5f14bf683f89f087acd182c73cad288ee7 (patch)
tree49a7dbbedaa4eb27b14a3cb32cb4542af40578ed
parent5e82bb9e6fe71fda6befecf6019e8248846a3fda (diff)
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 <ogoffart@woboq.com> Reviewed-by: Denis Dzyubenko <denis.dzyubenko@nokia.com>
-rw-r--r--src/corelib/plugin/quuid.h2
1 files changed, 1 insertions, 1 deletions
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 &);