diff options
author | Thiago Macieira <thiago.macieira@intel.com> | 2019-03-07 22:10:09 -0800 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2019-03-09 17:16:06 +0000 |
commit | 3cdf3ae1f0f90cbb20791c69552453f2555d3016 (patch) | |
tree | 7d393b94d8ea4c00b64ed5b47283dee6e8c4d373 | |
parent | 6a86cc612dbcd1983c6bcb50c41832b2a835b937 (diff) |
Fix Coverity warning about mixing enums
Coverity says:
>>> CID 190310: Incorrect expression (MIXED_ENUMS)
>>> Mixing enum types "CborType" and "QCborStreamReader::Type" for "type_".
Change-Id: Ifbadc62ac2d04a9a8952fffd1589e6e304fc7703
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
-rw-r--r-- | src/corelib/serialization/qcborstream.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/serialization/qcborstream.cpp b/src/corelib/serialization/qcborstream.cpp index d7b81ae324..264856b4bf 100644 --- a/src/corelib/serialization/qcborstream.cpp +++ b/src/corelib/serialization/qcborstream.cpp @@ -1934,7 +1934,7 @@ inline void QCborStreamReader::preparse() // for negative integer and we don't have separate types for Boolean, // Null and Undefined). if (type_ == CborBooleanType || type_ == CborNullType || type_ == CborUndefinedType) { - type_ = SimpleType; + type_ = CborSimpleType; value64 = quint8(d->buffer.at(d->bufferStart)) - CborSimpleType; } else { // Using internal TinyCBOR API! |