summaryrefslogtreecommitdiffstats
path: root/src/corelib/serialization
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2018-07-08 10:30:14 -0700
committerThiago Macieira <thiago.macieira@intel.com>2018-07-14 04:20:28 +0000
commit6fd98af332e405e63f040d0312bf8aba5ade4e29 (patch)
tree6819e354335a054cfa237c391c4ef6be0ffbd4a5 /src/corelib/serialization
parent5e66767fca9908c397705ed557b106ec2c3a63f8 (diff)
QCborValue/QDebug: restore decimal state after hex
Found by Coverity: >>> CID 190746: API usage errors (STREAM_FORMAT_STATE) >>> Changing format state of stream "dbg" for category basefield without later restoring it. Change-Id: If48c5c2e920c433298f1fffd153f74f9bbe7ef29 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/corelib/serialization')
-rw-r--r--src/corelib/serialization/qcborvalue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/serialization/qcborvalue.cpp b/src/corelib/serialization/qcborvalue.cpp
index 7409bed4e9..468a4b0780 100644
--- a/src/corelib/serialization/qcborvalue.cpp
+++ b/src/corelib/serialization/qcborvalue.cpp
@@ -2627,7 +2627,7 @@ static QDebug debugContents(QDebug &dbg, const QCborValue &v)
}
if (v.isSimpleType())
return dbg << v.toSimpleType();
- return dbg << "<unknown type " << hex << int(v.type()) << '>';
+ return dbg << "<unknown type " << hex << int(v.type()) << dec << '>';
}
QDebug operator<<(QDebug dbg, const QCborValue &v)
{