diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-02-02 05:24:02 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-02-02 05:24:02 (GMT) |
commit | 07e565096c5d209a16102f1d41c7ada8544a77d3 (patch) | |
tree | 9b5211f8fa45319fad231b85672be86b9dbfb527 /src/gui/math3d/qvector3d.h | |
parent | 364ecfa36d6d4dc0aa917a223e88869028d8219c (diff) | |
download | Qt-07e565096c5d209a16102f1d41c7ada8544a77d3.zip Qt-07e565096c5d209a16102f1d41c7ada8544a77d3.tar.gz Qt-07e565096c5d209a16102f1d41c7ada8544a77d3.tar.bz2 |
Add Q_MOVABLE_TYPE decls to QVector?D, QMatrix4x4, QQuaternion
Marking these types are movable allows container classes
to optimize for their unique properties.
Reviewed-by: Sarah Smith
Reviewed-by: Daniel Pope
Diffstat (limited to 'src/gui/math3d/qvector3d.h')
-rw-r--r-- | src/gui/math3d/qvector3d.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/math3d/qvector3d.h b/src/gui/math3d/qvector3d.h index 80c7152..2fdd1d3 100644 --- a/src/gui/math3d/qvector3d.h +++ b/src/gui/math3d/qvector3d.h @@ -141,6 +141,8 @@ private: #endif }; +Q_DECLARE_TYPEINFO(QVector3D, Q_MOVABLE_TYPE); + inline QVector3D::QVector3D() : xp(0.0f), yp(0.0f), zp(0.0f) {} inline QVector3D::QVector3D(qreal xpos, qreal ypos, qreal zpos) : xp(xpos), yp(ypos), zp(zpos) {} |