From 35c565e965c02f530483fe93fa6241d57646f1aa Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Thu, 15 Oct 2020 02:08:30 +0200 Subject: Port some more /*implicit*/-like comments to Q_IMPLICIT Change-Id: Ib70ad3f29365153af647deea54fc45467c413cb9 Reviewed-by: Fabian Kosmale --- src/gui/painting/qpolygon.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/gui/painting') 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 public: using QList::QList; QPolygon() = default; - /* implicit */ QPolygon(const QList &v) : QList(v) { } - /* implicit */ QPolygon(QList &&v) noexcept : QList(std::move(v)) { } - /* implicit */ Q_GUI_EXPORT QPolygon(const QRect &r, bool closed=false); + Q_IMPLICIT QPolygon(const QList &v) : QList(v) { } + Q_IMPLICIT QPolygon(QList &&v) noexcept : QList(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::swap(other); } // prevent QList<->QPolygon swaps @@ -132,10 +132,10 @@ class QPolygonF : public QList public: using QList::QList; QPolygonF() = default; - /* implicit */ QPolygonF(const QList &v) : QList(v) { } - /* implicit */ QPolygonF(QList &&v) noexcept : QList(std::move(v)) { } - /* implicit */ Q_GUI_EXPORT QPolygonF(const QRectF &r); - /* implicit */ Q_GUI_EXPORT QPolygonF(const QPolygon &a); + Q_IMPLICIT QPolygonF(const QList &v) : QList(v) { } + Q_IMPLICIT QPolygonF(QList &&v) noexcept : QList(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::swap(other); } // prevent QList<->QPolygonF swaps Q_GUI_EXPORT operator QVariant() const; -- cgit v1.2.3