From 3dcc075f4a5efce348a6fa00cf5a0adef97b1089 Mon Sep 17 00:00:00 2001 From: Thiago Macieira Date: Tue, 18 Apr 2017 16:22:46 -0700 Subject: Move Q_REQUIRED_RESULT to its correct position That's before the return type or static, inline, constexpr or such keywords (if any). Perl Script: s/^(\s+)(.*) Q_REQUIRED_RESULT(;)?(\s*\/\/.*)?$/\1Q_REQUIRED_RESULT \2\3\4/ Change-Id: I7814054a102a407d876ffffd14b6a16182f159e2 Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/gui/painting/qpainterpath.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/gui/painting/qpainterpath.h') diff --git a/src/gui/painting/qpainterpath.h b/src/gui/painting/qpainterpath.h index 131fcde8cc..db39c1c5a0 100644 --- a/src/gui/painting/qpainterpath.h +++ b/src/gui/painting/qpainterpath.h @@ -154,8 +154,8 @@ public: void translate(qreal dx, qreal dy); inline void translate(const QPointF &offset); - QPainterPath translated(qreal dx, qreal dy) const Q_REQUIRED_RESULT; - inline QPainterPath translated(const QPointF &offset) const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QPainterPath translated(qreal dx, qreal dy) const; + Q_REQUIRED_RESULT inline QPainterPath translated(const QPointF &offset) const; QRectF boundingRect() const; QRectF controlPointRect() const; @@ -165,7 +165,7 @@ public: bool isEmpty() const; - QPainterPath toReversed() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QPainterPath toReversed() const; QList toSubpathPolygons(const QMatrix &matrix = QMatrix()) const; QList toFillPolygons(const QMatrix &matrix = QMatrix()) const; QPolygonF toFillPolygon(const QMatrix &matrix = QMatrix()) const; @@ -185,12 +185,12 @@ public: bool intersects(const QPainterPath &p) const; bool contains(const QPainterPath &p) const; - QPainterPath united(const QPainterPath &r) const Q_REQUIRED_RESULT; - QPainterPath intersected(const QPainterPath &r) const Q_REQUIRED_RESULT; - QPainterPath subtracted(const QPainterPath &r) const Q_REQUIRED_RESULT; - QPainterPath subtractedInverted(const QPainterPath &r) const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QPainterPath united(const QPainterPath &r) const; + Q_REQUIRED_RESULT QPainterPath intersected(const QPainterPath &r) const; + Q_REQUIRED_RESULT QPainterPath subtracted(const QPainterPath &r) const; + Q_REQUIRED_RESULT QPainterPath subtractedInverted(const QPainterPath &r) const; - QPainterPath simplified() const Q_REQUIRED_RESULT; + Q_REQUIRED_RESULT QPainterPath simplified() const; bool operator==(const QPainterPath &other) const; bool operator!=(const QPainterPath &other) const; -- cgit v1.2.3