diff options
author | Jędrzej Nowacki <jedrzej.nowacki@qt.io> | 2018-09-10 08:47:32 +0200 |
---|---|---|
committer | Jędrzej Nowacki <jedrzej.nowacki@qt.io> | 2018-10-03 14:49:27 +0000 |
commit | 31f3facac32913074fe91b8f77e72be7c2f55a65 (patch) | |
tree | 1528f1f903485657ea4f5514988f344fed2dc888 /src/corelib/kernel/qmetatype.cpp | |
parent | e74cb37159b593b6c180949d56c99f4ea63986db (diff) |
Implement QDataStream operator for QCborSimpleValue
That allows us to remove custom handling in QMetaType.
Change-Id: Ic09fb96e1a05c6897803811d70aebbc6ea6e4f2e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/kernel/qmetatype.cpp')
-rw-r--r-- | src/corelib/kernel/qmetatype.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
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<QCustomTypeInfo> * const ct = customTypes(); @@ -1542,14 +1536,6 @@ public: *const_cast<unsigned long*>(data) = l; return true; } - bool delegate(const QCborSimpleType *data) - { - // TODO just define a normal QDataStream operator - quint8 l; - stream >> l; - *const_cast<QCborSimpleType*>(data) = QCborSimpleType(l); - return true; - } bool delegate(const QMetaTypeSwitcher::NotBuiltinType *data) { const QVector<QCustomTypeInfo> * const ct = customTypes(); |