QStringRef: optimize U16/U8 compare_helper
Mirrors the change done to the resp. QString function in
qtbase/cd3569d69adc61655d3c797f5cc764782e8bbe53 (picked to 6.2), with
the exception that we shouldn't mark it as noexcept in released
branches, because that breaks forward BC, and the old implementation
could, actually, throw (bad_alloc).
Pick-to: 6.12 6.11 6.8
Change-Id: Ia017b8bce46e47f2f693724428c3cfc18b8661bd
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
| commit | ef115df5d1665d203f33c0deb16461533309ca00 |
| parent | d96da5d335891504fddb42d3bb3b4b5932c47018 |
| author | Marc Mutz <marc.mutz@qt.io> |
| committer | Marc Mutz <marc.mutz@qt.io> |
| commit time | Mon, 17 Aug 2026 15:22:58 +0000 |