From 31f3facac32913074fe91b8f77e72be7c2f55a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Nowacki?= Date: Mon, 10 Sep 2018 08:47:32 +0200 Subject: Implement QDataStream operator for QCborSimpleValue That allows us to remove custom handling in QMetaType. Change-Id: Ic09fb96e1a05c6897803811d70aebbc6ea6e4f2e Reviewed-by: Thiago Macieira --- src/corelib/kernel/qmetatype.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/corelib/kernel/qmetatype.cpp') diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp index 3f47f03f42..1ba5f3979c 100644 --- a/src/corelib/kernel/qmetatype.cpp +++ b/src/corelib/kernel/qmetatype.cpp @@ -1485,12 +1485,6 @@ public: stream << qulonglong(*data); return true; } - bool delegate(const QCborSimpleType *data) - { - // TODO just define a normal QDataStream operator - stream << quint8(*data); - return true; - } bool delegate(const QMetaTypeSwitcher::NotBuiltinType *data) { const QVector * const ct = customTypes(); @@ -1542,14 +1536,6 @@ public: *const_cast(data) = l; return true; } - bool delegate(const QCborSimpleType *data) - { - // TODO just define a normal QDataStream operator - quint8 l; - stream >> l; - *const_cast(data) = QCborSimpleType(l); - return true; - } bool delegate(const QMetaTypeSwitcher::NotBuiltinType *data) { const QVector * const ct = customTypes(); -- cgit v1.2.3