diff options
author | Eike Rathke <erack@redhat.com> | 2022-08-31 14:08:26 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2022-08-31 20:49:46 +0200 |
commit | 2c2e0568e89942cc8463c0da9aa7a3d177667178 (patch) | |
tree | 56eef8bd675da9b766dcc57bdc7c5181c05728b8 /editeng/source/misc | |
parent | 08385a624cbcd6d3de3476c76511545d4034a931 (diff) |
Related: tdf#150370 Convert isValidBcp47() bool to enum LanguageTag::PrivateUse
... to prepare for more finegrained private-use control.
Change-Id: I118c3f5ee6e437435c07ed2cf699c4597e9cdf88
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139112
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/acorrcfg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/misc/acorrcfg.cxx b/editeng/source/misc/acorrcfg.cxx index a97e5077ccb6..5806179bc5f0 100644 --- a/editeng/source/misc/acorrcfg.cxx +++ b/editeng/source/misc/acorrcfg.cxx @@ -83,7 +83,8 @@ static void scanAutoCorrectDirForLanguageTags( const OUString& rURL ) // private-use tag (which should not fallback, but // avoid). if (aLanguageTag.getCountry().isEmpty() - && LanguageTag::isValidBcp47( aCanonicalized, nullptr, true)) + && LanguageTag::isValidBcp47( aCanonicalized, nullptr, + LanguageTag::PrivateUse::DISALLOW)) { LanguageTag aFallback( aLanguageTag); aFallback.makeFallback(); |