summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-11-01 21:08:22 -0700
committerThiago Macieira <thiago.macieira@intel.com>2016-11-02 17:49:35 +0000
commit670652d8675d441c7e4b8c447882b8dd33bc0f42 (patch)
tree88d919c08081809d16a5dc9fd3644b4367936738
parenta318b5bf5063cf8ba4ae1bd1c92a4d1eb460de76 (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.h2
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);
}