diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2020-09-28 17:05:26 +0200 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2021-02-04 17:18:46 +0100 |
commit | 96ef1769c18d90053e48176c22a594e03f1d6e38 (patch) | |
tree | 6ebb5219306d37fbdc04cbe0ca084fa6e93a146f /src/corelib/tools/qrect.cpp | |
parent | 8c1532eeaae6a220569cef3476d1124399478285 (diff) |
Rationalize QVector[234]D's length-handling
Use qHypot() instead of casting to and from double so much,
use qFuzzyCompare(_, 1.0f) rather than qFuzzyIsNull(_ - 1.0f).
Change-Id: I70f38fe2d9aefe1ceb15e1a370f181a7856911b7
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/corelib/tools/qrect.cpp')
0 files changed, 0 insertions, 0 deletions