diff options
| author | Marc Mutz <marc.mutz@qt.io> | 2025-07-30 15:59:44 +0200 |
|---|---|---|
| committer | Marc Mutz <marc.mutz@qt.io> | 2025-08-18 15:37:55 +0200 |
| commit | 443d39b12026479afdbfed14afa30e1c1999b746 (patch) | |
| tree | f287c44655bf77f379f8d1a9fb0264e335f659f0 /src/widgets/doc/snippets/widgetdelegate.cpp | |
| parent | 480ac7bbf450a1d02708dd99740e2235eafdd402 (diff) | |
QLocale/Win: move Norwegian legacy codes into windows_to_iso_list
The id -> name lookup is using lower_bound(), so it will reliably find the first-listed of adjacent equivalent keys, which for both cases remains the new spelling. But by inserting the legacy spelling after the new one, the loop in qt_inIsoNametoLCID() will naturally find them. Yes, finding these two locale-ids will now be quite a bit slower, but everything else will be a bit faster. If this operation is speed-critical, we would have added an index (in the database sense) on iso_name, not just on windows_code.
Pick-to: 6.10 6.9 6.8 6.5
Change-Id: Iee19bb664fa128d59dc5fc2a055c53d7da18b7c5
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/widgets/doc/snippets/widgetdelegate.cpp')
0 files changed, 0 insertions, 0 deletions
