diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-03-08 11:08:32 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2017-03-08 13:11:13 +0000 |
commit | 8f52ad9fe084eee26869e4a94a678076845a6f58 (patch) | |
tree | cac0a49d53d3ec7a66548920ceb33c1d142af9f9 /src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc | |
parent | 69415638ae488b8dd045b85db5a75eb80610c64b (diff) |
ucstricmp: compare null and empty strings equal
For consistency with ucstrcmp(), which does the same.
Before, the two overloads would sort null before empty strings. This
behavior was removed in Qt 3.0, IIRC-
This does not yet change anything, as all callers seem to work around
the problem by handling null strings before calling this function
(directly or indirectly). We would have seen a failure crop up if it
wasn't so.
As soon as we use these functions to compare QStringViews, however,
the functions need to deal correctly with a nullptr lhs and/or rhs, so
fix them.
Change-Id: Ie4e417aade993213169b96b5e7351850c52ae733
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/doc/src/widgets-and-layouts/stylesheet.qdoc')
0 files changed, 0 insertions, 0 deletions