diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2016-11-01 21:08:22 -0700 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2016-11-02 17:49:35 +0000 |
commit | 670652d8675d441c7e4b8c447882b8dd33bc0f42 (patch) | |
tree | 88d919c08081809d16a5dc9fd3644b4367936738 | |
parent | a318b5bf5063cf8ba4ae1bd1c92a4d1eb460de76 (diff) |
Make symmetric the streaming of enums
m_fieldId is a QContactDetail::DetailType and it is decoded with a
quint32:
quint32 type;
stream >> type >> m_fieldId >> m_minValue >> m_maxValue >> flags >> rangeFlags;
Change-Id: Ic46ff326a6ba46bc877cfffd14831f77eb04c1a8
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
-rw-r--r-- | src/contacts/filters/qcontactdetailrangefilter_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/contacts/filters/qcontactdetailrangefilter_p.h b/src/contacts/filters/qcontactdetailrangefilter_p.h index c7adab6ee..9f51ac0f7 100644 --- a/src/contacts/filters/qcontactdetailrangefilter_p.h +++ b/src/contacts/filters/qcontactdetailrangefilter_p.h @@ -94,7 +94,7 @@ public: QDataStream& outputToStream(QDataStream& stream, quint8 formatVersion) const { if (formatVersion == 1) { - stream << m_typeId << m_fieldId << m_minValue << m_maxValue + stream << quint32(m_typeId) << m_fieldId << m_minValue << m_maxValue << static_cast<quint32>(m_flags) << static_cast<quint32>(m_rangeflags); } |