diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-11 11:09:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-11 17:18:51 +0200 |
commit | 38640d7cb4dd6c19cd9f0c944536dfc1ccec1bf8 (patch) | |
tree | 221a7b8fa6aa53b6d69414f821ea128997fa301d /include/filter | |
parent | 8ac1dd864bc535a25caa91c44e7d94b8b8ab9024 (diff) |
use more string_view in filter
Change-Id: Icbccd81fd0fa18fc15a32aa2729b1c5f9a3ee542
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150220
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/filter')
-rw-r--r-- | include/filter/msfilter/rtfutil.hxx | 4 | ||||
-rw-r--r-- | include/filter/msfilter/util.hxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/filter/msfilter/rtfutil.hxx b/include/filter/msfilter/rtfutil.hxx index fd7473149df6..7c678402abd9 100644 --- a/include/filter/msfilter/rtfutil.hxx +++ b/include/filter/msfilter/rtfutil.hxx @@ -38,7 +38,7 @@ MSFILTER_DLLPUBLIC OString OutChar(sal_Unicode c, int* pUCMode, rtl_TextEncoding * @param eDestEnc the legacy encoding to use * @param bUnicode if unicode output is wanted as well, or just legacy */ -MSFILTER_DLLPUBLIC OString OutString(const OUString& rStr, rtl_TextEncoding eDestEnc, +MSFILTER_DLLPUBLIC OString OutString(std::u16string_view rStr, rtl_TextEncoding eDestEnc, bool bUnicode = true); /** @@ -50,7 +50,7 @@ MSFILTER_DLLPUBLIC OString OutString(const OUString& rStr, rtl_TextEncoding eDes * @param rStr the text to export * @param eDestEnc the legacy encoding to use */ -MSFILTER_DLLPUBLIC OString OutStringUpr(const char* pToken, const OUString& rStr, +MSFILTER_DLLPUBLIC OString OutStringUpr(std::string_view pToken, std::u16string_view rStr, rtl_TextEncoding eDestEnc); /** diff --git a/include/filter/msfilter/util.hxx b/include/filter/msfilter/util.hxx index b9b92ba930ef..495c8ed13581 100644 --- a/include/filter/msfilter/util.hxx +++ b/include/filter/msfilter/util.hxx @@ -86,7 +86,7 @@ MSFILTER_DLLPUBLIC OUString CreateDOCXStyleId(std::u16string_view aName); * * Example: SEQ "Figure" \someoption -> "Figure" */ -MSFILTER_DLLPUBLIC std::u16string_view findQuotedText( std::u16string_view rCommand, const char* cStartQuote, const sal_Unicode uEndQuote ); +MSFILTER_DLLPUBLIC std::u16string_view findQuotedText( std::u16string_view rCommand, std::u16string_view cStartQuote, const sal_Unicode uEndQuote ); class MSFILTER_DLLPUBLIC WW8ReadFieldParams { |