summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/parhtml.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index 7031b443344e..7e8ac63fc61e 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -478,7 +478,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak )
if( IsParserWorking() && !rInput.eof() )
{
- OUString sEntity(sEntityBuffer.getStr(), nPos);
+ std::u16string_view sEntity(sEntityBuffer.subView(0, nPos));
cChar = GetHTMLCharName( sEntity );
// not found ( == 0 ): plain text
@@ -492,7 +492,7 @@ HtmlTokenId HTMLParser::ScanText( const sal_Unicode cBreak )
{
nNextCh = sEntityBuffer[i];
sEntityBuffer.setLength( i );
- sEntity = OUString(sEntityBuffer.getStr(), i);
+ sEntity = sEntityBuffer.subView(0, i);
cChar = GetHTMLCharName( sEntity );
if( cChar )
{