summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcolor.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-01 11:28:50 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-09-02 19:07:44 +0200
commitd8712ad04402903118739c31569a3cae6df3884e (patch)
treedbda090ea93aec2eb49b9fefa8a258752724a6cf /src/gui/painting/qcolor.h
parent1629deec839552fb78689c8edd93a3ffab61efde (diff)
qPremultiply(QRgb): let the compiler see all versions
Use a template helper function and template specialization to select which of the two versions (64bit / 32bit) to use. This makes the compiler see both versions on all platforms, enabling better syntax checking should either of the two change. It also will fail to compile on platforms where the word size is neither 4 nor eight bytes now... And, of course, it's always satisfying to remove a use of the preprocessor. Change-Id: I4870411f99eb3b1a2c0c170fa53fa3c9b026da15 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/gui/painting/qcolor.h')
0 files changed, 0 insertions, 0 deletions