diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-27 16:09:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-04-28 11:45:56 +0200 |
commit | 6c724e18c2af227c2ad865342531ff35b0d511ac (patch) | |
tree | 837d68a7be72c9fb4beeb9f59b8ccb1e2e348ef4 /include/i18nlangtag | |
parent | 7e3c2e46c61c4ff29b4f4e62aa7a7660042d091e (diff) |
use more string_view in i18nlangtag
Change-Id: I92e3d60180c31d765994a2212e1c4547c09c93d2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133517
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/i18nlangtag')
-rw-r--r-- | include/i18nlangtag/mslangid.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/i18nlangtag/mslangid.hxx b/include/i18nlangtag/mslangid.hxx index aee1f23eb816..cb2e244556b1 100644 --- a/include/i18nlangtag/mslangid.hxx +++ b/include/i18nlangtag/mslangid.hxx @@ -120,7 +120,7 @@ public: // TODO: refactor to LanguageTag, used only in // i18npool/source/isolang/inunx.cxx to convert Unix locale string - static LanguageType convertUnxByteStringToLanguage( const OString& rString ); + static LanguageType convertUnxByteStringToLanguage( std::string_view rString ); static LanguageType resolveSystemLanguageByScriptType( LanguageType nLang, sal_Int16 nType ); @@ -245,7 +245,7 @@ public: const css::lang::Locale & rLocale ); friend LanguageType MsLangId::convertUnxByteStringToLanguage( - const OString& rString ); + std::string_view rString ); /** Convert a Locale to a LanguageType with handling of an empty |