diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-23 10:09:42 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-25 07:10:45 +0200 |
commit | c2be9180b7430221e9136afb1a8c2a752ac2710f (patch) | |
tree | 5b390c53f4744c7bd4faeaf4d3a12d77ce3c0ba7 /src/gui/painting/qpolygon.h | |
parent | 31a1b3280cf076fcdb45a658d0140af3737be138 (diff) |
Replace Q_REQUIRED_RESULT with [[nodiscard]]
It was already used many places directly making the code inconsistent.
Change-Id: I3b14bc6c333640fb3ba33c71eba97e78c973e44b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/gui/painting/qpolygon.h')
-rw-r--r-- | src/gui/painting/qpolygon.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/painting/qpolygon.h b/src/gui/painting/qpolygon.h index 80edd8d387..a861da5f32 100644 --- a/src/gui/painting/qpolygon.h +++ b/src/gui/painting/qpolygon.h @@ -69,8 +69,8 @@ public: Q_GUI_EXPORT void translate(int dx, int dy); void translate(const QPoint &offset); - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygon translated(int dx, int dy) const; - Q_REQUIRED_RESULT inline QPolygon translated(const QPoint &offset) const; + [[nodiscard]] Q_GUI_EXPORT QPolygon translated(int dx, int dy) const; + [[nodiscard]] inline QPolygon translated(const QPoint &offset) const; Q_GUI_EXPORT QRect boundingRect() const; @@ -86,9 +86,9 @@ public: Q_GUI_EXPORT bool containsPoint(const QPoint &pt, Qt::FillRule fillRule) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygon united(const QPolygon &r) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygon intersected(const QPolygon &r) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygon subtracted(const QPolygon &r) const; + [[nodiscard]] Q_GUI_EXPORT QPolygon united(const QPolygon &r) const; + [[nodiscard]] Q_GUI_EXPORT QPolygon intersected(const QPolygon &r) const; + [[nodiscard]] Q_GUI_EXPORT QPolygon subtracted(const QPolygon &r) const; Q_GUI_EXPORT bool intersects(const QPolygon &r) const; }; @@ -144,7 +144,7 @@ public: void Q_GUI_EXPORT translate(const QPointF &offset); inline QPolygonF translated(qreal dx, qreal dy) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygonF translated(const QPointF &offset) const; + [[nodiscard]] Q_GUI_EXPORT QPolygonF translated(const QPointF &offset) const; QPolygon Q_GUI_EXPORT toPolygon() const; @@ -154,9 +154,9 @@ public: Q_GUI_EXPORT bool containsPoint(const QPointF &pt, Qt::FillRule fillRule) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygonF united(const QPolygonF &r) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygonF intersected(const QPolygonF &r) const; - Q_REQUIRED_RESULT Q_GUI_EXPORT QPolygonF subtracted(const QPolygonF &r) const; + [[nodiscard]] Q_GUI_EXPORT QPolygonF united(const QPolygonF &r) const; + [[nodiscard]] Q_GUI_EXPORT QPolygonF intersected(const QPolygonF &r) const; + [[nodiscard]] Q_GUI_EXPORT QPolygonF subtracted(const QPolygonF &r) const; Q_GUI_EXPORT bool intersects(const QPolygonF &r) const; }; |