diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 14:41:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 16:37:38 +0200 |
commit | f600c5389ccad6a221732b478650a20de4355890 (patch) | |
tree | 3a965309459efcee7a030628375d09cc88b5ebb0 /include | |
parent | 78afe29f3d56e589be4e0d25573eef32377548eb (diff) |
use more string_view in svl
Change-Id: Icd978cd3cb7946f96d2570a0b8c87a74eed57c98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140241
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/svl/inettype.hxx | 2 | ||||
-rw-r--r-- | include/svl/numformat.hxx | 2 | ||||
-rw-r--r-- | include/svl/zformat.hxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/svl/inettype.hxx b/include/svl/inettype.hxx index b8f79d49a7af..7d9ebce51f60 100644 --- a/include/svl/inettype.hxx +++ b/include/svl/inettype.hxx @@ -249,7 +249,7 @@ public: static INetContentType GetContentType4Extension(OUString const& rExtension); - static INetContentType GetContentTypeFromURL(OUString const& rURL); + static INetContentType GetContentTypeFromURL(std::u16string_view aURL); static bool GetExtensionFromURL(std::u16string_view rURL, OUString& rExtension); diff --git a/include/svl/numformat.hxx b/include/svl/numformat.hxx index dc1c704d364d..6ff04837b0bb 100644 --- a/include/svl/numformat.hxx +++ b/include/svl/numformat.hxx @@ -489,7 +489,7 @@ public: else <NULL/>. */ static const NfCurrencyEntry* GetCurrencyEntry(bool& bFoundBank, std::u16string_view rSymbol, - const OUString& rExtension, + std::u16string_view rExtension, LanguageType eFormatLanguage, bool bOnlyStringLanguage = false); diff --git a/include/svl/zformat.hxx b/include/svl/zformat.hxx index ae57f5c868ed..43f6ad9775f4 100644 --- a/include/svl/zformat.hxx +++ b/include/svl/zformat.hxx @@ -469,7 +469,7 @@ public: is non-"gregorian" and rOrgCalendar is not empty. Thus a preceding ImpSwitchToOtherCalendar() call should have been placed prior to calling this method. */ - void SwitchToGregorianCalendar( const OUString& rOrgCalendar, double fOrgDateTime ) const; + void SwitchToGregorianCalendar( std::u16string_view rOrgCalendar, double fOrgDateTime ) const; #ifdef THE_FUTURE /** Switches to the first specified calendar, if any, in subformat nNumFor @@ -584,7 +584,7 @@ private: * list of language types. These numbers also correspond with the * numbers used by Microsoft Office. */ - SVL_DLLPRIVATE static LocaleType ImpGetLocaleType( const OUString& rString, sal_Int32& nPos ); + SVL_DLLPRIVATE static LocaleType ImpGetLocaleType( std::u16string_view rString, sal_Int32& nPos ); /** Obtain calendar and numerals from a LocaleType that was parsed from a LCID with ImpGetLocaleType(). |