summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@libreoffice.org>2023-06-19 17:08:45 +0300
committerخالد حسني <khaled@libreoffice.org>2023-06-19 21:52:25 +0200
commitd80d89d98183ee0c1a232b975107c319001f3fbc (patch)
tree0ad48da5eb1240e6d2f9b527979ac4b0a76ec720 /include
parentc276b859c56a173daeb3070a0b3a8cbbffa1822d (diff)
embeddedfontshelper: use u16string_view instead of char pointer
Change-Id: I7a6088c570ebd0680cc1b2603b946192a19bef26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153268 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/embeddedfontshelper.hxx4
-rw-r--r--include/xmloff/xmlimp.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/vcl/embeddedfontshelper.hxx b/include/vcl/embeddedfontshelper.hxx
index 4802c13a2d8d..cbf91ee7f09b 100644
--- a/include/vcl/embeddedfontshelper.hxx
+++ b/include/vcl/embeddedfontshelper.hxx
@@ -65,7 +65,7 @@ public:
@param eot whether the data is compressed in Embedded OpenType format
*/
bool addEmbeddedFont( const css::uno::Reference< css::io::XInputStream >& stream,
- const OUString& fontName, const char* extra,
+ const OUString& fontName, std::u16string_view extra,
std::vector< unsigned char > const & key, bool eot = false);
/**
@@ -76,7 +76,7 @@ public:
@param fontName name of the font (e.g. 'Times New Roman')
@param extra additional text to use for name (e.g. to distinguish regular from bold, italic,...), "?" for unique
*/
- static OUString fileUrlForTemporaryFont( const OUString& fontName, const char* extra );
+ static OUString fileUrlForTemporaryFont( const OUString& fontName, std::u16string_view extra );
/**
Adds the accumulated fonts to the list of known fonts. The fonts are used only until application
diff --git a/include/xmloff/xmlimp.hxx b/include/xmloff/xmlimp.hxx
index 3287911f1112..fda180bb7837 100644
--- a/include/xmloff/xmlimp.hxx
+++ b/include/xmloff/xmlimp.hxx
@@ -582,7 +582,7 @@ public:
// see EmbeddedFontsHelper::addEmbeddedFont
bool addEmbeddedFont( const css::uno::Reference< css::io::XInputStream >& stream,
- const OUString& fontName, const char* extra,
+ const OUString& fontName, std::u16string_view extra,
std::vector< unsigned char > const & key, bool eot);
virtual void NotifyContainsEmbeddedFont() {}