summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2017-10-04 11:34:08 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2017-12-08 13:27:31 +0000
commit1c1f42b4dc6984959255adb4c26d44a0f26dd109 (patch)
tree20bc50f96ba6a93a0c8cc9bef1e43527822c0c74 /doc
parent9856f869f5cd4b7651c10b71b824aff4c006cf3b (diff)
Deduplicate a common check for legacy codes
All of QLocalePrivate::codeToLanguage()'s legacy codes were two-letter, so duplicated a "third letter is 0" check; pulling it out in front of them all will get any three-letter code more promptly to the final fall-back, while saving the two-letter codes repetition of the check. Change-Id: I8ee81a526adaa7b24c11c1de7a1750d87deb5fb3 Reviewed-by: Andy Shaw <andy.shaw@qt.io> Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions