diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-11-09 18:01:59 +0100 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-11-10 09:31:54 +0000 |
commit | 06799b58dd0e9a2f637e6e21949390e3b2b17733 (patch) | |
tree | 9eea6cf6a58cf8f9a3cef16cf8bc96f33613c8b3 /header.LGPL | |
parent | 531a53c796a20fbeeb55536330ec718ef2bb7cb2 (diff) |
Q_PRIMITIVE_TYPE: improve the documentation
A key piece of information missing from Q_PRIMITIVE_TYPE
documentation is that for them value initialization must equal
memset()ting with zeroes. A type like QPoint is primitive
because `QPoint p;` is initialized to (0, 0), but a type like
QSize is movable (and NOT primitive) because `QSize s;` is
actually initialized to (-1, -1). Amend the docs.
Change-Id: I121684810da46be5d0579c7d3de945149390a32a
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
(cherry picked from commit b8b75cdcfa71189c7726607be7b66d0ddeaae372)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'header.LGPL')
0 files changed, 0 insertions, 0 deletions