qt5base-lts/tests/auto/corelib
Anton Kudryavtsev 9c8a8e90a6 QString: fix append(const QStringRef &str)
Use QStringRef::isNull instead of QStringRef::string()
for validation. Non-NULL str.string() may yet leave us
with a useless str.unicode(), which is the actual problem here;
whereas !str.isNull() does really confirm that str.unicode()
is sensible.

Such test prevents situation like:

const QString a;
QString b;
b.append(a); // b.isNull() == true
b.append(QStringRef(&a)); // b.isNull() == false

Auto test updated: create QStringRef from QString directly, without
any condition.

Change-Id: I082cd58ef656d8a53e3c1223aca01feea82fffb9
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
2016-08-04 19:55:04 +00:00
..
animation Extend tst_QPauseAnimation::pauseAndPropertyAnimations blacklist 2015-06-20 15:25:58 +00:00
codecs Fix utf8->utf16 BOM/ZWNBSP decoding. 2015-12-21 09:56:49 +00:00
global Fix qSetMessagePattern to have many time/backtrace parts 2016-03-25 11:03:43 +00:00
io QUrl: fix resolved() for data URLs 2016-07-29 17:51:51 +00:00
itemmodels QSortFilterProxyModel: Don't forward the hint from source's layoutChanged signal 2016-08-01 14:08:15 +00:00
json Update testdata 2016-02-17 04:50:50 +00:00
kernel Fixed Bug in QVariant comparison when containing QStringLists 2016-08-03 11:16:35 +00:00
mimetypes QMimeDatabase: fix mimeTypeForUrl for mailto URLs 2016-04-23 08:44:45 +00:00
plugin Fix qplugin autotest on Windows 2016-06-08 19:40:29 +00:00
statemachine Merge remote-tracking branch 'origin/5.5' into 5.6 2016-01-19 10:03:01 +01:00
thread tst_QAtomicInteger: fix UBs (signed overflow) 2016-03-24 16:16:15 +00:00
tools QString: fix append(const QStringRef &str) 2016-08-04 19:55:04 +00:00
xml QtCore: Fix QXmlStreamReader for invalid characters in XML 1.0 2016-07-17 14:54:36 +00:00
corelib.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00