path: root/src/corelib/itemmodels
diff options
authorMarc Mutz <>2016-08-17 23:33:17 +0200
committerMarc Mutz <>2016-08-26 08:25:31 +0000
commitd875a0417417d1921e5a4f967d6aff72edef71c7 (patch)
tree2a84aa15d1ab8911f4c34ec15d625b4dfc7f42f9 /src/corelib/itemmodels
parent13680ceb9a468f824e24e448e932eed3a4ad9007 (diff)
QtJson: simplify/add missing relational operators involving Latin1String
As noted by Mat Sutcliffe <>, there were no relational operators for Latin1String/QLatin1String and String/QLatin1String mixed comparisons, leading to implicit conversions from QL1S to QString in Entry::op==(QL1S). This patch fixes half of the issue, by providing the operators for Latin1String/QLatin1String. In doing so, it cleans up their definition (non-members, non-friends, delegating to existing QL1S operators where possible, passing both {Q,}Latin1String by value, as they're both Trivially Copyable and small). A follow-up patch will deal with String/QLatin1String comparisons. It will be not quite as straight-forward as this patch, since we don't, yet, have QStringView, the UTF-16 equivalent of QL1S, available. Amends a5159cc50aa0f8a57b6f736621b359a3bcecbf7e. Change-Id: I596358eb3ccf847b7680f171f9992f3fad80132c Reviewed-by: Mat Sutcliffe <> Reviewed-by: Lars Knoll <>
Diffstat (limited to 'src/corelib/itemmodels')
0 files changed, 0 insertions, 0 deletions