QPoint(F): declare as PRIMITIVE, not RELOCATABLE
These types can be copied via memcpy, so use the correct tag. Change-Id: Icba37d42dd8658225ce4889284661d108122d489 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
This commit is contained in:
parent
23636d4281
commit
48f685f5e5
@ -129,7 +129,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QPoint, Q_RELOCATABLE_TYPE);
|
||||
Q_DECLARE_TYPEINFO(QPoint, Q_PRIMITIVE_TYPE);
|
||||
|
||||
/*****************************************************************************
|
||||
QPoint stream functions
|
||||
@ -326,7 +326,7 @@ private:
|
||||
}
|
||||
};
|
||||
|
||||
Q_DECLARE_TYPEINFO(QPointF, Q_RELOCATABLE_TYPE);
|
||||
Q_DECLARE_TYPEINFO(QPointF, Q_PRIMITIVE_TYPE);
|
||||
|
||||
size_t qHash(QPointF, size_t seed = 0) = delete;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user