From afc7da09ec01b1658451d36c52f22c0d203f593d Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Mon, 25 Aug 2014 11:23:18 +0200 Subject: QRegion: add move ctor After this change, this was the distribution of calls in QtGui and QtWidgets when the patch was developed for 5.4: QtGui QtWidgets move 23 63 copy 23 36 Change-Id: If3f536e52fc242c585e7fa0662049c0657efcc9c Reviewed-by: Allan Sandfeld Jensen Reviewed-by: Lars Knoll --- src/gui/painting/qregion.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/painting/qregion.h') diff --git a/src/gui/painting/qregion.h b/src/gui/painting/qregion.h index 94e2db2648..d66f80fcde 100644 --- a/src/gui/painting/qregion.h +++ b/src/gui/painting/qregion.h @@ -68,6 +68,8 @@ public: QRegion(const QRect &r, RegionType t = Rectangle); QRegion(const QPolygon &pa, Qt::FillRule fillRule = Qt::OddEvenFill); QRegion(const QRegion ®ion); + QRegion(QRegion &&other) Q_DECL_NOTHROW + : d(other.d) { other.d = const_cast(&shared_empty); } QRegion(const QBitmap &bitmap); ~QRegion(); QRegion &operator=(const QRegion &); -- cgit v1.2.3