From 2c2e0568e89942cc8463c0da9aa7a3d177667178 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 31 Aug 2022 14:08:26 +0200 Subject: 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 Tested-by: Jenkins --- editeng/source/misc/acorrcfg.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editeng/source/misc') 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(); -- cgit