From fc78bc2c06a5cb01f0a67675dbba1a5f0f99f5ed Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Sun, 19 Jul 2015 21:58:32 +0200 Subject: QGenericMatrix: mark as relocatable, depending on T Inherit the type-classification from the underlying type, but, for BC reasons, force isStatic = true, so QList does not change its memory layout in an incompatible way. Change-Id: I11003cdd24968f903fbd86aa2f5c17287e057c1f Reviewed-by: Sean Harmer Reviewed-by: Olivier Goffart (Woboq GmbH) --- src/gui/math3d/qgenericmatrix.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/gui/math3d') diff --git a/src/gui/math3d/qgenericmatrix.h b/src/gui/math3d/qgenericmatrix.h index b7a6196515..5e22fa6730 100644 --- a/src/gui/math3d/qgenericmatrix.h +++ b/src/gui/math3d/qgenericmatrix.h @@ -103,6 +103,17 @@ private: friend class QGenericMatrix; #endif }; +template +class QTypeInfo > + : public QTypeInfoMerger, T> +{ +#if QT_VERSION < QT_VERSION_CHECK(6,0,0) +public: + enum { + isStatic = true, + }; // at least Q_RELOCATABLE_TYPE, for BC during Qt 5 +#endif +}; template Q_INLINE_TEMPLATE QGenericMatrix::QGenericMatrix() -- cgit v1.2.3