summaryrefslogtreecommitdiff
path: root/helpcompiler/source
diff options
context:
space:
mode:
Diffstat (limited to 'helpcompiler/source')
-rw-r--r--helpcompiler/source/BasCodeTagger.cxx2
-rw-r--r--helpcompiler/source/HelpLinker.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/helpcompiler/source/BasCodeTagger.cxx b/helpcompiler/source/BasCodeTagger.cxx
index deaaa0f5253d..415dec04c470 100644
--- a/helpcompiler/source/BasCodeTagger.cxx
+++ b/helpcompiler/source/BasCodeTagger.cxx
@@ -141,7 +141,7 @@ void BasicCodeTagger::tagParagraph( xmlNodePtr paragraph )
m_Highlighter.getHighlightPortions( strLine, portions );
for (auto const& portion : portions)
{
- OString sToken(OUStringToOString(strLine.copy(portion.nBegin, portion.nEnd-portion.nBegin), RTL_TEXTENCODING_UTF8));
+ OString sToken(OUStringToOString(strLine.subView(portion.nBegin, portion.nEnd-portion.nBegin), RTL_TEXTENCODING_UTF8));
xmlNodePtr text = xmlNewText(reinterpret_cast<const xmlChar*>(sToken.getStr()));
if ( portion.tokenType != TokenType::Whitespace )
{
diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx
index 46a9fac2edf2..166ff9918f76 100644
--- a/helpcompiler/source/HelpLinker.cxx
+++ b/helpcompiler/source/HelpLinker.cxx
@@ -847,10 +847,10 @@ HelpProcessingErrorInfo& HelpProcessingErrorInfo::operator=( const struct HelpPr
bool compileExtensionHelp
(
const OUString& aOfficeHelpPath,
- const OUString& aExtensionName,
+ std::u16string_view aExtensionName,
const OUString& aExtensionLanguageRoot,
sal_Int32 nXhpFileCount, const OUString* pXhpFiles,
- const OUString& aDestination,
+ std::u16string_view aDestination,
HelpProcessingErrorInfo& o_rHelpProcessingErrorInfo
)
{