qt6-bb10/tests/auto/corelib/tools/qstring
Marc Mutz e486d69133 QString: preserve embedded NULs when converting from QByteArray
Unearthed an off-by-one error in a QByteArray::fromRawData() call in
tst_qtextdocumentfragment. Fixed by porting to QStringLiteral.

[ChangeLog][Important Behavior Changes] All conversions from QByteArray
to QString now preserve embedded NULs. This is done in order to provide a
faster conversion from QByteArray to QString that does not involve a call to
strlen. If you need the old behavior, convert from QByteArray::constData()
instead. If you are porting from Qt 4, we suggest to make your source compile
with QT_NO_CAST_FROM_BYTEARRAY before porting to Qt 5.

Change-Id: Ibca40f503920fee6f3a5f0d74a04b38b8849796f
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2015-04-02 19:28:31 +00:00
..
.gitignore
double_data.h Update copyright headers 2015-02-11 06:49:51 +00:00
qstring.pro Add conversion functions for C++11 u16string and u32string 2015-01-24 11:50:13 +01:00
tst_qstring.cpp QString: preserve embedded NULs when converting from QByteArray 2015-04-02 19:28:31 +00:00
tst_qstring_mac.mm Fixed license headers 2015-02-17 18:46:09 +00:00