summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <[email protected]>2025-12-07 09:05:35 +0100
committerMarc Mutz <[email protected]>2025-12-08 18:56:05 +0000
commit29aac61c18fefda7b8edea3fbfbf6473fdadd71b (patch)
tree9799385b055b41c5b7205830077a263814669820 /src
parentcbfa16fb722b42e6503d666681a4a05dc5693ae2 (diff)
QSizeF: clean up after port to QtPrivate::fuzzyCompare()
Amends edbe05d1e586e1860b2b5b68888c414300b008d9, which left the (now superfluous) -Wfloat-equal warning suppressions in, as well as a partial comment. Pick-to: 6.11 6.10 6.8 6.5 Change-Id: Ia45bcc8ab1367ed9bf0f6ff9d830eb258ca38dd0 Reviewed-by: Ivan Solovev <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/tools/qsize.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/corelib/tools/qsize.h b/src/corelib/tools/qsize.h
index 1c5b02ed1f0..680bf2812d3 100644
--- a/src/corelib/tools/qsize.h
+++ b/src/corelib/tools/qsize.h
@@ -254,15 +254,11 @@ public:
inline QSizeF &operator/=(qreal c);
private:
- QT_WARNING_PUSH
- QT_WARNING_DISABLE_FLOAT_COMPARE
friend constexpr bool qFuzzyCompare(const QSizeF &s1, const QSizeF &s2) noexcept
{
- // if one of the arguments is 0.0.
return QtPrivate::fuzzyCompare(s1.wd, s2.wd)
&& QtPrivate::fuzzyCompare(s1.ht, s2.ht);
}
- QT_WARNING_POP
friend constexpr bool qFuzzyIsNull(const QSizeF &size) noexcept
{ return qFuzzyIsNull(size.wd) && qFuzzyIsNull(size.ht); }
friend constexpr bool comparesEqual(const QSizeF &lhs, const QSizeF &rhs) noexcept