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
Thiago Macieira 2018-07-08 10:30:14 -07:00
parent 5e66767fca
commit 6fd98af332
1 changed files with 1 additions and 1 deletions

View File

@ -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)
{