diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-26 14:00:20 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-01-27 04:25:17 +0100 |
commit | cd3569d69adc61655d3c797f5cc764782e8bbe53 (patch) | |
tree | ee180a0df189bedba3d31ce3df2abcb0e6e55ad7 /tests/auto/concurrent/qtconcurrenttask | |
parent | 88fd9a281a1be2563124fa67f43950edf08eb5f0 (diff) |
QString: optimize compare_helper
For a long time now we have fast mixed UTF-16/UTF-8 comparisons. But
no-one told this ol' relic, which still converted UTF-8 to UTF-16 for
comparison.
Fix by using QtPrivate::compareStrings(QSV, QU8SV), which, as the
central entry point, uses the fast-path.
Consequently, compare_helper can now be noexcept.
Pick-to: 6.3 6.2
Change-Id: I4cc9f07d9bc48628f1fe695e80015a9a07b79d6f
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/concurrent/qtconcurrenttask')
0 files changed, 0 insertions, 0 deletions