diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2019-04-27 22:10:17 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2019-05-02 20:10:11 +0000 |
commit | fe57936d8c6e1bdafea5ba3260cc05c137a88ead (patch) | |
tree | bf86f3dae3e9c936f3afe67c973b1ce313cf30c8 /tests | |
parent | 1b16f79bf2a4efa5c8f60ae48adbf563fa819611 (diff) |
qIsNull: redo implementation
The reason for using type-punning through an integer was
to avoid compiler warnings about float comparisons. We have
now a better mechanism to suppress such warnings,
so there is no need to be "clever" and trigger UB because
of the union usage.
Drive-by change: add constexpr+noexcept because now there's no
longer UB.
Change-Id: I29f7514e39055658d4ef6c431daf5abfc660df16
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions