path: root/src/gui
diff options
authorMarc Mutz <>2012-03-30 14:09:15 +0200
committerQt by Nokia <>2012-04-09 12:54:49 +0200
commit39b45781562712f320edb6519aef7b2444699848 (patch)
tree1d7fe7d4cec08106554e4003fa7f48d84555c1fb /src/gui
parent1c20c3f29441a6856c6eb58dda40b86bdaac6a06 (diff)
QTypeInfo: document Q_PRIMITIVE_TYPE existing practice
Despite the documentation requiring Q_PRIMITIVE_TYPEs to be PODs, existing practice in Qt (QFixed, QFlags, QUuid) is to allow constructors on primitive types as long as every bit pattern represents a valid object (ie. memory doesn't have to be initialised to hold an object of the type) and memcpy() can be used to create an independent copy of the object (memcpy()ing QString, e.g., while creating two valid objects, doesn't create independent copies). Change-Id: Ia85d48b89f6cc84e69ea76719eab9a858d247ad6 Reviewed-by: Thiago Macieira <> Reviewed-by: Olivier Goffart <> Reviewed-by: Lars Knoll <> Reviewed-by: Jędrzej Nowacki <>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions