QVectorND: mark as primitive, not just movable
Every bit combination is a valid object, so the correct type classification is primitive, not just movable. This is BC, because it just changes whether the default ctor and dtor are run or not, and these types don't care. Change-Id: Ifbfa83128778744f15a086a65c8be1ce01a58820 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
This commit is contained in:
parent
287e944def
commit
dda4ee46f9
@ -122,7 +122,7 @@ private:
|
||||
friend class QVector4D;
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QVector2D, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_TYPEINFO(QVector2D, Q_PRIMITIVE_TYPE);
|
||||
|
||||
Q_DECL_CONSTEXPR inline QVector2D::QVector2D() : xp(0.0f), yp(0.0f) {}
|
||||
|
||||
|
@ -141,7 +141,7 @@ private:
|
||||
#endif
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QVector3D, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_TYPEINFO(QVector3D, Q_PRIMITIVE_TYPE);
|
||||
|
||||
Q_DECL_CONSTEXPR inline QVector3D::QVector3D() : xp(0.0f), yp(0.0f), zp(0.0f) {}
|
||||
|
||||
|
@ -131,7 +131,7 @@ private:
|
||||
#endif
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QVector4D, Q_MOVABLE_TYPE);
|
||||
Q_DECLARE_TYPEINFO(QVector4D, Q_PRIMITIVE_TYPE);
|
||||
|
||||
Q_DECL_CONSTEXPR inline QVector4D::QVector4D() : xp(0.0f), yp(0.0f), zp(0.0f), wp(0.0f) {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user