summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qeasingcurve.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-02-18 08:52:51 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-21 15:28:40 +0100
commit6a6178702e8af97b943c728f1cb4ab20233835a2 (patch)
treead6992321cd77c7a676762f68ae9cbcbcb12af39 /src/corelib/tools/qeasingcurve.h
parent5d6b2d5e343e27940e5fd78cb2aa897aac6bc2ed (diff)
QEasingCurve: implement move-assignment operator
Implemented as in QPen etc. Change-Id: I65b43c6ec7308ca4b44f614594c15c41ab2f89f9 Reviewed-by: Lars Knoll <lars.knoll@nokia.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qeasingcurve.h')
-rw-r--r--src/corelib/tools/qeasingcurve.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/tools/qeasingcurve.h b/src/corelib/tools/qeasingcurve.h
index 8b2e783bdc..33d7c6934e 100644
--- a/src/corelib/tools/qeasingcurve.h
+++ b/src/corelib/tools/qeasingcurve.h
@@ -83,6 +83,10 @@ public:
~QEasingCurve();
QEasingCurve &operator=(const QEasingCurve &other);
+#ifdef Q_COMPILER_RVALUE_REFS
+ QEasingCurve &operator=(QEasingCurve &&other)
+ { qSwap(d_ptr, other.d_ptr); return *this; }
+#endif
inline void swap(QEasingCurve &other) { qSwap(d_ptr, other.d_ptr); }