From 0b0acce5a7b2b209e6359e64d91d300a4eb70a3c Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 9 Oct 2020 15:33:05 +0200 Subject: 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 --- src/corelib/serialization/qcborcommon.h | 4 ++-- 1 file 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) -- cgit v1.2.3