summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-07-07 19:12:16 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-07-08 22:14:52 +0200
commit6b6b88774bc9176a9e5eb3b82778a8317bf99d45 (patch)
tree4facbf5402d5219b77e89699f1896230993b1f0a /src/corelib/tools
parent0a1fe50d0bc32353bb7aaf8eef4759afd54901aa (diff)
QLine/F: mark as primitive type
QPoint/F are, then so are QLine/F, being a pair of points. Found by static_assert()ing !isComplex in QDataBuffer. Pick-to: 6.4 Change-Id: I358a38d79820c9262a86018253002bc991c5a6e4 Reviewed-by: Lars Knoll <lars.knoll@gmail.com>
Diffstat (limited to 'src/corelib/tools')
-rw-r--r--src/corelib/tools/qline.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/tools/qline.h b/src/corelib/tools/qline.h
index 5961d5a57e..e23ffbe9d5 100644
--- a/src/corelib/tools/qline.h
+++ b/src/corelib/tools/qline.h
@@ -56,7 +56,7 @@ public:
private:
QPoint pt1, pt2;
};
-Q_DECLARE_TYPEINFO(QLine, Q_RELOCATABLE_TYPE);
+Q_DECLARE_TYPEINFO(QLine, Q_PRIMITIVE_TYPE);
/*******************************************************************************
* class QLine inline members
@@ -241,7 +241,7 @@ public:
private:
QPointF pt1, pt2;
};
-Q_DECLARE_TYPEINFO(QLineF, Q_RELOCATABLE_TYPE);
+Q_DECLARE_TYPEINFO(QLineF, Q_PRIMITIVE_TYPE);
/*******************************************************************************
* class QLineF inline members