diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-10-15 02:08:30 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-10-16 01:07:31 +0200 |
commit | 35c565e965c02f530483fe93fa6241d57646f1aa (patch) | |
tree | bf6537421baae041b9a83d82c22307f28ee1c606 /src/gui/painting | |
parent | 2ded340d5559f078fe0d27ef142799f76da08dd5 (diff) |
Port some more /*implicit*/-like comments to Q_IMPLICIT
Change-Id: Ib70ad3f29365153af647deea54fc45467c413cb9
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/gui/painting')
-rw-r--r-- | src/gui/painting/qpolygon.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/painting/qpolygon.h b/src/gui/painting/qpolygon.h index a861da5f32..32567dcef8 100644 --- a/src/gui/painting/qpolygon.h +++ b/src/gui/painting/qpolygon.h @@ -58,9 +58,9 @@ class QPolygon : public QList<QPoint> public: using QList<QPoint>::QList; QPolygon() = default; - /* implicit */ QPolygon(const QList<QPoint> &v) : QList<QPoint>(v) { } - /* implicit */ QPolygon(QList<QPoint> &&v) noexcept : QList<QPoint>(std::move(v)) { } - /* implicit */ Q_GUI_EXPORT QPolygon(const QRect &r, bool closed=false); + Q_IMPLICIT QPolygon(const QList<QPoint> &v) : QList<QPoint>(v) { } + Q_IMPLICIT QPolygon(QList<QPoint> &&v) noexcept : QList<QPoint>(std::move(v)) { } + Q_IMPLICIT Q_GUI_EXPORT QPolygon(const QRect &r, bool closed=false); Q_GUI_EXPORT QPolygon(int nPoints, const int *points); void swap(QPolygon &other) noexcept { QList<QPoint>::swap(other); } // prevent QList<QPoint><->QPolygon swaps @@ -132,10 +132,10 @@ class QPolygonF : public QList<QPointF> public: using QList<QPointF>::QList; QPolygonF() = default; - /* implicit */ QPolygonF(const QList<QPointF> &v) : QList<QPointF>(v) { } - /* implicit */ QPolygonF(QList<QPointF> &&v) noexcept : QList<QPointF>(std::move(v)) { } - /* implicit */ Q_GUI_EXPORT QPolygonF(const QRectF &r); - /* implicit */ Q_GUI_EXPORT QPolygonF(const QPolygon &a); + Q_IMPLICIT QPolygonF(const QList<QPointF> &v) : QList<QPointF>(v) { } + Q_IMPLICIT QPolygonF(QList<QPointF> &&v) noexcept : QList<QPointF>(std::move(v)) { } + Q_IMPLICIT Q_GUI_EXPORT QPolygonF(const QRectF &r); + Q_IMPLICIT Q_GUI_EXPORT QPolygonF(const QPolygon &a); inline void swap(QPolygonF &other) { QList<QPointF>::swap(other); } // prevent QList<QPointF><->QPolygonF swaps Q_GUI_EXPORT operator QVariant() const; |