Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12
-
None
-
e114fec62a (qt/qtbase/dev) e114fec62a (qt/tqtc-qtbase/dev) 8b8cb92674 (qt/tqtc-qtbase/6.2) f7eada3203 (qt/qtbase/6.3) f3abda4836 (qt/qtbase/6.4) f7eada3203 (qt/tqtc-qtbase/6.3) f3abda4836 (qt/tqtc-qtbase/6.4) 8b8cb92674 (qt/tqtc-qtbase/6.2.5)
Description
The added check in commit 35adb74ddd915831789f0175423660f8e898942e
"n >= 0" seems to be incorrect.
small example:
const auto obj = QJsonObject{ { "key", QJsonArray() } }; const auto x = obj.value( "key" ).toArray( QJsonArray{ "default" } );
x should have the value QJsonArray() , but it will have the value QJsonArray{ "default" }
Attachments
For Gerrit Dashboard: QTBUG-104085 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
415022,2 | QJsonValue: fix incorrect to{Array,Object} when the value is empty | dev | qt/qtbase | Status: MERGED | +2 | 0 |
417947,2 | QJsonValue: fix incorrect to{Array,Object} when the value is empty | 6.4 | qt/qtbase | Status: MERGED | +2 | 0 |
417948,2 | QJsonValue: fix incorrect to{Array,Object} when the value is empty | 6.3 | qt/qtbase | Status: MERGED | +2 | 0 |
417952,2 | QJsonValue: fix incorrect to{Array,Object} when the value is empty | tqtc/lts-6.2 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
417953,4 | QJsonValue: fix incorrect to{Array,Object} when the value is empty | tqtc/lts-5.15 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |