Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.6
-
None
-
4d261c1b5 (dev), 2c12c9b01 (6.6), 8ed2bc919 (dev)
Description
Found as part of https://codereview.qt-project.org/c/qt/qtbase/+/481727 , cf. QTBUG-114206
Testcase:
S a; QVERIFY(a.isNull()); S empty = ""; QVERIFY(empty.isEmpty()); QVERIFY(!empty.isNull()); S result = a; result += empty; QVERIFY(result.isEmpty()); QVERIFY(!result.isNull());
If S is QString, this passes. If S is QByteArray, this fails (result is null).
Attachments
Issue Links
- relates to
-
QTBUG-114317 QStringBuilder does not necessarily preserve nullness
-
- Closed
-
For Gerrit Dashboard: QTBUG-114238 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
481727,7 | Revert "QStringBuilder: remove unneeded specializations" | dev | qt/qtbase | Status: MERGED | +2 | 0 |
481947,2 | Revert "QStringBuilder: remove unneeded specializations" | 6.6 | qt/qtbase | Status: MERGED | +2 | 0 |
485990,5 | QByteArray: change append(QByteArray) to match QStringBuilder behavior | dev | qt/qtbase | Status: MERGED | +2 | 0 |
494156,1 | QByteArray: change append(QByteArray) to match QStringBuilder behavior | 6.6 | qt/qtbase | Status: ABANDONED | +2 | 0 |