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>bb10
parent
5e66767fca
commit
6fd98af332
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue