From f98d9aa9da1f858cd499d7d6687fc137f40939f7 Mon Sep 17 00:00:00 2001 From: Edward Welbourne Date: Mon, 23 Aug 2021 13:12:01 +0200 Subject: [PATCH] Refine QLocale constructor documentation Fix a typo and swap two sentences to give a clearer reading. Pick-to: 6.2 Change-Id: I4a24ad5ba2e022edd121eb686de3638af2c242a6 Reviewed-by: Paul Wicking --- src/corelib/text/qlocale.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index 4efa210c7b..bc32dfeaaa 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -934,11 +934,11 @@ QLocale::QLocale(QLocalePrivate &dd) \endlist The separator can be either underscore \c{'_'} (U+005F, "low line") or a - dash \c{'-'} (U+002D, "hyphen-minus"). If the string violates the locale + dash \c{'-'} (U+002D, "hyphen-minus"). If QLocale has no data for the + specified combination of language, script, and territory, then it uses the + most suitable match it can find instead. If the string violates the locale format, or no suitable data can be found for the specified keys, the "C" - locale is used instead. If QLocale has no data for the specified combination - of language, script and territory, the it uses most suitable match it can - find instead. + locale is used instead. This constructor is much slower than QLocale(Language, Script, Territory) or QLocale(Language, Territory).