summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qeasingcurve.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2012-02-18 08:52:13 +0100
committerQt by Nokia <qt-info@nokia.com>2012-02-21 15:28:40 +0100
commit5d6b2d5e343e27940e5fd78cb2aa897aac6bc2ed (patch)
tree36611ecca3b35f515906cb59ba291ec0faca4d09 /src/corelib/tools/qeasingcurve.h
parent689311a5683162889311ce6c994803b59a690746 (diff)
QEasingCurve: add member-swap
Implementated as in QPen etc. Change-Id: Ia08551bf7902b60e115d1b1d2353030597e34841 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/corelib/tools/qeasingcurve.h b/src/corelib/tools/qeasingcurve.h
index a5a707102b..8b2e783bdc 100644
--- a/src/corelib/tools/qeasingcurve.h
+++ b/src/corelib/tools/qeasingcurve.h
@@ -83,6 +83,9 @@ public:
~QEasingCurve();
QEasingCurve &operator=(const QEasingCurve &other);
+
+ inline void swap(QEasingCurve &other) { qSwap(d_ptr, other.d_ptr); }
+
bool operator==(const QEasingCurve &other) const;
inline bool operator!=(const QEasingCurve &other) const
{ return !(this->operator==(other)); }