From d573e2ae17d2ff589ec7adc0dddf6a78db4cc93a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 20 May 2024 09:34:37 +0200 Subject: loplugin:ostr in various Change-Id: I9f399b3752da9df930e0647536ffcd4e82beb1ac Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167856 Tested-by: Jenkins Reviewed-by: Noel Grandin --- i18nutil/source/utility/unicode.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'i18nutil') diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index e98afeeff3b8..b0e1cd4d85ef 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -1044,7 +1044,7 @@ OUString unicode::formatPercent(double dNumber, // http://www.unicode.org/cldr/charts/24/by_type/numbers.number_formatting_patterns.html // so format using French which has the desired rules if (aLangTag.getLanguage() == "es" || aLangTag.getLanguage() == "sl") - aLangTag.reset("fr-FR"); + aLangTag.reset(u"fr-FR"_ustr); icu::Locale aLocale = LanguageTagIcu::getIcuLocale(aLangTag); -- cgit v1.2.3