diff options
| author | Edward Welbourne <edward.welbourne@qt.io> | 2025-01-14 19:38:41 +0100 |
|---|---|---|
| committer | Edward Welbourne <edward.welbourne@qt.io> | 2025-01-17 17:02:51 +0100 |
| commit | f8128f280999e21ba291c899ce669d77803b976c (patch) | |
| tree | 9aae1749cf303879b5b625e53f67de57b15e268a /src/corelib/tools/qcommandlineparser.cpp | |
| parent | 952ec8db3a096ddb92e98e408dfe193168efa50a (diff) | |
QLocale::uiLanguages(): only QString-ify the locale names we do add
We can test whether the candidate is already in the list by exploiting
the comparison of QLatin1StringView with QString (and related
QStringList::compare() overload), so we don't need to convert the
QByteArray to QString unless we're actually going to add it.
(This does lead to the prior name being converted twice, but the
second of these is about to go away.)
Change-Id: I8e47cbb4c9e44ad8ef13d04e930a4619845418ef
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qcommandlineparser.cpp')
0 files changed, 0 insertions, 0 deletions
