summaryrefslogtreecommitdiffstats
path: root/i18nlangtag
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-12-29 12:20:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-04 15:29:54 +0100
commitc34e8bd71384326184baac7dea31f7ddf9bae6bc (patch)
tree0914b24023030781b3a74a768be9df4d2873b4b9 /i18nlangtag
parentlok: don't log warnings (diff)
downloadcore-c34e8bd71384326184baac7dea31f7ddf9bae6bc.tar.gz
core-c34e8bd71384326184baac7dea31f7ddf9bae6bc.zip
loplugin:stringviewparam: operator +=
Change-Id: I30ce1b5bd8fb168da7067c1967c5af2569df2653 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108512 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'i18nlangtag')
-rw-r--r--i18nlangtag/source/languagetag/languagetag.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/i18nlangtag/source/languagetag/languagetag.cxx b/i18nlangtag/source/languagetag/languagetag.cxx
index 148a102a5733..ef5e4cf518a4 100644
--- a/i18nlangtag/source/languagetag/languagetag.cxx
+++ b/i18nlangtag/source/languagetag/languagetag.cxx
@@ -1950,7 +1950,7 @@ OUString LanguageTagImpl::getGlibcLocaleString() const
return maCachedGlibcString;
}
-OUString LanguageTag::getGlibcLocaleString( const OUString & rEncoding ) const
+OUString LanguageTag::getGlibcLocaleString( std::u16string_view rEncoding ) const
{
OUString aRet;
if (isIsoLocale())
@@ -1966,7 +1966,7 @@ OUString LanguageTag::getGlibcLocaleString( const OUString & rEncoding ) const
aRet = getImpl()->getGlibcLocaleString();
sal_Int32 nAt = aRet.indexOf('@');
if (nAt != -1)
- aRet = aRet.subView(0, nAt) + rEncoding + aRet.subView(nAt);
+ aRet = OUString::Concat(aRet.subView(0, nAt)) + rEncoding + aRet.subView(nAt);
else
aRet += rEncoding;
}