qt5base-lts/tests/auto
Marc Mutz 009f1f2812 QString: fix regression comparing null QString with null const char *
Commit 4a40c717f3 optimized
QString::compare_helper(QChar*, int, char*, int), but got
the case wrong where the rhs is null, but the lhs is empty,
not null (which is the case even with a null QString, as
QString().constData() != nullptr). The correct result in
this case is 0, since in Qt empty and null strings compare
equal.

Fix by checking the length of lhs, not its pointer.

Task-number: QTBUG-55154
Change-Id: I3ec2cd25d9bdca90cf3f5568a875b1e52c779979
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2016-08-05 18:52:16 +00:00
..
android Updated license headers 2016-01-21 18:55:18 +00:00
bic/data
cmake Merge remote-tracking branch 'origin/5.6' into 5.7 2016-04-04 08:59:18 +02:00
compilerwarnings/data Updated license headers 2016-01-21 18:55:18 +00:00
concurrent QtConcurrentRun: add unittest for polling for isFinished() 2016-02-15 13:53:57 +00:00
corelib QString: fix regression comparing null QString with null const char * 2016-08-05 18:52:16 +00:00
dbus Fix/adapt the uses of {to,set,from}Time_t in the qtbase source code 2016-07-06 06:28:13 +00:00
gui QPolygon: add a smoke-test for boundingRect() 2016-08-04 10:46:06 +00:00
guiapplauncher
installed_cmake
network Fix some syntax issues in SCTP implementation 2016-08-03 06:21:47 +00:00
opengl Merge remote-tracking branch 'origin/5.6.1' into 5.6 2016-06-02 06:01:25 +02:00
other Fix grayscale painting regression in 64-bit raster engine 2016-08-03 15:35:28 +00:00
printsupport Merge remote-tracking branch 'origin/5.6' into 5.7 2016-02-29 12:34:31 +01:00
shared Updated license headers 2016-01-21 18:55:18 +00:00
sql Merge remote-tracking branch 'origin/5.7' into dev 2016-06-21 08:39:41 +02:00
testlib Merge remote-tracking branch 'origin/5.7' into dev 2016-07-19 20:14:40 +02:00
tools Merge remote-tracking branch 'origin/5.7' into dev 2016-08-01 18:20:00 +02:00
widgets Merge remote-tracking branch 'origin/5.7' into dev 2016-08-01 18:20:00 +02:00
xml Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
auto.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00
network-settings.h Merge remote-tracking branch 'origin/5.6' into 5.7 2016-05-06 15:36:44 +02:00
test.pl Updated license headers 2016-01-21 18:55:18 +00:00