qt5base-lts/tests/auto/corelib/tools
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
..
collections
containerapisymmetry
qalgorithms
qarraydata
qarraydata_strictiterators
qbitarray
qbytearray Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qbytearraylist
qbytearraymatcher
qbytedatabuffer
qcache
qchar Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-24 13:38:25 +01:00
qcollator Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qcommandlineparser Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qcontiguouscache
qcryptographichash Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qdate
qdatetime Skip a date-time test when we don't know what result it should give 2018-01-12 10:06:07 +00:00
qeasingcurve
qexplicitlyshareddatapointer
qfreelist
qhash
qhash_strictiterators
qhashfunctions
qlatin1string
qline
qlinkedlist
qlist
qlist_strictiterators
qlocale
qmacautoreleasepool
qmap
qmap_strictiterators
qmargins
qmessageauthenticationcode
qpair
qpoint
qpointf
qqueue
qrect
qregexp
qregularexpression
qringbuffer
qscopedpointer
qscopedvaluerollback
qset
qsharedpointer
qsize
qsizef
qstl
qstring QString: fix comparisons to null strings in ucstricmp 2018-02-04 17:24:59 +00:00
qstring_no_cast_from_bytearray
qstringapisymmetry
qstringbuilder
qstringiterator
qstringlist
qstringmatcher
qstringref
qstringview Fix license headers 2018-01-11 11:40:36 +00:00
qtextboundaryfinder Support for Q_OS_ANDROID_EMBEDDED and android-embedded build flags 2018-01-20 18:16:59 +00:00
qtime
qtimeline
qtimezone
qvarlengtharray
qvector Fix aliasing problem in QVector::removeAll() 2017-11-28 21:58:50 +00:00
qvector_strictiterators
qversionnumber
tools.pro