summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-09 15:33:05 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-18 13:48:07 +0200
commit0b0acce5a7b2b209e6359e64d91d300a4eb70a3c (patch)
tree6b2007681071cb074d0a5faaf27f73b5aafbe2dd /src/corelib/serialization
parent40e6fe780150161bb608f5df356bfe4f00861be5 (diff)
Cbor: Export the datastream operators for QCborSimpleType
Otherwise they are not available to the tests. This is exposed by making the metatype interfaces constexpr. Change-Id: I1b3214f339985f2f8ffaf0640cf51e41e92198d0 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/serialization')
-rw-r--r--src/corelib/serialization/qcborcommon.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/serialization/qcborcommon.h b/src/corelib/serialization/qcborcommon.h
index f5e38b5a22..1e33a5bae4 100644
--- a/src/corelib/serialization/qcborcommon.h
+++ b/src/corelib/serialization/qcborcommon.h
@@ -134,8 +134,8 @@ Q_CORE_EXPORT QDebug operator<<(QDebug, QCborTag tg);
#endif
#if !defined(QT_NO_DATASTREAM)
-QDataStream &operator<<(QDataStream &ds, QCborSimpleType st);
-QDataStream &operator>>(QDataStream &ds, QCborSimpleType &st);
+Q_CORE_EXPORT QDataStream &operator<<(QDataStream &ds, QCborSimpleType st);
+Q_CORE_EXPORT QDataStream &operator>>(QDataStream &ds, QCborSimpleType &st);
#endif
inline size_t qHash(QCborSimpleType tag, size_t seed = 0)