path: root/src/corelib/global/qtypeinfo.h
diff options
authorMarc Mutz <>2012-04-05 14:49:02 +0200
committerQt by Nokia <>2012-07-06 16:08:02 +0200
commitfa36d81bbcbe9cecaaa20922dd278f7b14fc3d3c (patch)
treeeabf9901da96802c1435c7b46667aeaaafe273ab /src/corelib/global/qtypeinfo.h
parentb0aa023aa2e08fb24eb1220c92bec02df3df8c90 (diff)
QPalette: add member-swap
Implemented as in other shared classes (e.g. QPen), except that I wrapped the bitfield in a union to speed up swapping. (GCC didn't manage to optimize (hand-rolled) swaps of adjacent bit field elements into an integer one, even at -O2). GCC -pedantic complains about anonymous structs, so I had to give the struct in the union a name. Change-Id: I519e1c2f88f6ae2dffed38b493991189d67073b8 Reviewed-by: Girish Ramakrishnan <> Reviewed-by: Gunnar Sletta <> Reviewed-by: Thiago Macieira <>
Diffstat (limited to 'src/corelib/global/qtypeinfo.h')
0 files changed, 0 insertions, 0 deletions