diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-20 12:19:21 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-10-21 08:26:38 +0200 |
commit | 05685708b78b43713fbfc59ff78160340a38e2d1 (patch) | |
tree | ec5ee4bc4fdff1e176cd0698644bc893950054c2 /src/corelib/tools/qrect.h | |
parent | 9aba868571e7448ea79229a31d18bfd3e69813f8 (diff) |
Whitespace cleanup in corelib/tools
Change-Id: Ibe796c398a8e5488b7203abb07aa54740744f1ab
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qrect.h')
-rw-r--r-- | src/corelib/tools/qrect.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/corelib/tools/qrect.h b/src/corelib/tools/qrect.h index 3e7b965829..b898696293 100644 --- a/src/corelib/tools/qrect.h +++ b/src/corelib/tools/qrect.h @@ -130,11 +130,11 @@ public: QRect operator|(const QRect &r) const noexcept; QRect operator&(const QRect &r) const noexcept; - inline QRect& operator|=(const QRect &r) noexcept; - inline QRect& operator&=(const QRect &r) noexcept; + inline QRect &operator|=(const QRect &r) noexcept; + inline QRect &operator&=(const QRect &r) noexcept; bool contains(const QRect &r, bool proper = false) const noexcept; - bool contains(const QPoint &p, bool proper=false) const noexcept; + bool contains(const QPoint &p, bool proper = false) const noexcept; inline bool contains(int x, int y) const noexcept; inline bool contains(int x, int y, bool proper) const noexcept; [[nodiscard]] inline QRect united(const QRect &other) const noexcept; @@ -428,13 +428,13 @@ inline bool QRect::contains(int ax, int ay) const noexcept return contains(QPoint(ax, ay), false); } -inline QRect& QRect::operator|=(const QRect &r) noexcept +inline QRect &QRect::operator|=(const QRect &r) noexcept { *this = *this | r; return *this; } -inline QRect& QRect::operator&=(const QRect &r) noexcept +inline QRect &QRect::operator&=(const QRect &r) noexcept { *this = *this & r; return *this; @@ -596,8 +596,8 @@ public: QRectF operator|(const QRectF &r) const noexcept; QRectF operator&(const QRectF &r) const noexcept; - inline QRectF& operator|=(const QRectF &r) noexcept; - inline QRectF& operator&=(const QRectF &r) noexcept; + inline QRectF &operator|=(const QRectF &r) noexcept; + inline QRectF &operator&=(const QRectF &r) noexcept; bool contains(const QRectF &r) const noexcept; bool contains(const QPointF &p) const noexcept; @@ -838,13 +838,13 @@ inline bool QRectF::contains(qreal ax, qreal ay) const noexcept return contains(QPointF(ax, ay)); } -inline QRectF& QRectF::operator|=(const QRectF &r) noexcept +inline QRectF &QRectF::operator|=(const QRectF &r) noexcept { *this = *this | r; return *this; } -inline QRectF& QRectF::operator&=(const QRectF &r) noexcept +inline QRectF &QRectF::operator&=(const QRectF &r) noexcept { *this = *this & r; return *this; @@ -879,8 +879,8 @@ constexpr inline QRect QRectF::toRect() const noexcept // All dimensions are at most off by 0.75, and topLeft by at most 0.5. const int nxp = qRound(xp); const int nyp = qRound(yp); - const int nw = qRound(w + (xp - nxp)/2); - const int nh = qRound(h + (yp - nyp)/2); + const int nw = qRound(w + (xp - nxp) / 2); + const int nh = qRound(h + (yp - nyp) / 2); return QRect(nxp, nyp, nw, nh); } |