QChar: mark as PRIMITIVE type

I guess the reason it was marked RELOCATABLE was to ensure
initialization, which we now do anyways (even for PRIMITIVE).

Change-Id: If4f2c248b7b04a301bad81588ea9a9ad06534760
Reviewed-by: Andrei Golubev <andrei.golubev@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2021-05-27 13:09:49 +02:00
parent 8b691ce245
commit bf0b2b24a7

View File

@ -639,7 +639,7 @@ private:
char16_t ucs;
};
Q_DECLARE_TYPEINFO(QChar, Q_RELOCATABLE_TYPE);
Q_DECLARE_TYPEINFO(QChar, Q_PRIMITIVE_TYPE);
#ifndef QT_NO_DATASTREAM
Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, QChar);