qt5base-lts/tests/auto/corelib
Thiago Macieira ea6675374f QString: fix comparisons to null strings in ucstricmp
Commit 8f52ad9fe0 ("ucstricmp: compare
null and empty strings equal") made sure empties and nulls would compare
equally, but may have broken the null vs non-empty comparison (which was
not tested). The commit message also said that it expected all callers
to handle null before calling into those functions, but that's not the
case for QStringView created from a null QString: the incoming "a"
pointer was null.

So just remove the checks for null pointers and rely on the size checks
doing the right thing.

[ChangeLog][QtCore][QString] Fixed a regression from 5.9 that caused
comparing default-constructed QStrings to be sorted after non-empty
strings.

Task-number: QTBUG-65939
Change-Id: I56b444f9d6274221a3b7fffd150c83ad46c599b6
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2018-02-04 17:24:59 +00:00
..
animation Use a custom QAnimationDriver to take control over time 2017-12-02 19:58:30 +00:00
codecs QTextCodec: add QStringView overloads 2017-04-06 12:05:33 +00:00
global Merge remote-tracking branch 'origin/5.9' into 5.10 2017-12-30 12:09:53 +01:00
io Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-24 13:38:25 +01:00
itemmodels Fix license headers 2018-01-11 11:40:36 +00:00
json Improve symmetry of variant json conversions 2017-07-25 09:00:46 +00:00
kernel Revert "QVariant: convert QDateTime and QTime to string with milliseconds" 2018-02-01 16:09:34 +00:00
mimetypes Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
plugin Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
statemachine Fix assert when emitting a signal from a different thread 2017-12-14 16:30:38 +00:00
thread Merge remote-tracking branch 'origin/5.9' into 5.10 2017-11-28 11:23:35 +01:00
tools QString: fix comparisons to null strings in ucstricmp 2018-02-04 17:24:59 +00:00
xml Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00
corelib.pro Add support for Apple tvOS 2016-05-17 16:11:23 +00:00