Details
-
Task
-
Resolution: Fixed
-
P2: Important
-
None
-
None
-
5
-
5fc1e9fa0 (dev), c653cf117 (6.9), 7637203f8 (6.8), 0c9786989 (tqtc/lts-6.5), 57d91d802 (dev), eeefa8c27 (dev)
-
Foundation Sprint 126, Foundation Sprint 127
Description
The following succeeds for String == QString, but fails for String == QByteArray:
{ String h, n, rep = "a", res = rep; h.replace(n, rep); QCOMPARE(h, res); } { String h, n = "", rep = "a", res = rep; h.replace(n, rep); QCOMPARE(h, res); }
Expected behaviour: QByteArray is consistent with QString (and tokenize()/split() + join() for that matter).
Attachments
For Gerrit Dashboard: QTBUG-134079 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
627394,2 | tst_QByteArray: check replace() with empty and null needles and haystacks | dev | qt/qtbase | Status: MERGED | +2 | -1 |
627396,3 | QByteArray: make replace() consistent with QString's | dev | qt/qtbase | Status: MERGED | +2 | 0 |
627714,2 | tst_QByteArray: check replace() with empty and null needles and haystacks | 6.9 | qt/qtbase | Status: MERGED | +2 | 0 |
628377,2 | tst_QByteArray: check replace() with empty and null needles and haystacks | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |
628383,2 | tst_QByteArray: check replace() with empty and null needles and haystacks | tqtc/lts-6.5 | qt/tqtc-qtbase | Status: MERGED | +2 | 0 |
631781,2 | tst_QByteArray: remove unused constexpr variable isByteArray | dev | qt/qtbase | Status: MERGED | +2 | 0 |