summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qcolor.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-02 11:02:20 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-09-02 19:07:08 +0200
commit1629deec839552fb78689c8edd93a3ffab61efde (patch)
treefac7e671872fa9aa75f4d31997b3b72213ffff93 /src/gui/painting/qcolor.h
parent23c1b132b1727caee1a4891c34ef27e3a5697df5 (diff)
QTextFormat: use qHash(double/float) instead of own implementation
The implementation of hash(float) does not treat +0 and -0 the same, thus violating the property required of hash functions that they produce equal hash values for equal input. Simply use the qHash() FP functions which recently became available and which do not have that problem. This was found by unrelated code review. I'm not aware of any user- visible issue this fixes. Change-Id: I458c384aaf112e29cea677022969b62a34263cfb Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'src/gui/painting/qcolor.h')
0 files changed, 0 insertions, 0 deletions