summaryrefslogtreecommitdiff
path: root/oox/source/drawingml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-29 10:29:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-29 12:35:47 +0200
commit38d4b6eb42246c0dbd4958a50ed8437bc93508d6 (patch)
treef5cb5690566cf9bb90944458e9b6c862a8870f58 /oox/source/drawingml
parentf56f8be65b26cb3c8e83af05f10ba9f717ff76b2 (diff)
use more string_view in oox
found by examining uses of OUString::copy() for likely places Change-Id: I23c397b0438e67e0fdbc1fb4ffa6882aa5e2bf91 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133591 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r--oox/source/drawingml/hyperlinkcontext.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/drawingml/hyperlinkcontext.cxx b/oox/source/drawingml/hyperlinkcontext.cxx
index 7bb6930eca13..352eb7bf5efa 100644
--- a/oox/source/drawingml/hyperlinkcontext.cxx
+++ b/oox/source/drawingml/hyperlinkcontext.cxx
@@ -91,8 +91,8 @@ HyperLinkContext::HyperLinkContext( ContextHandler2Helper const & rParent,
static const OUStringLiteral sJump( u"jump=" );
if ( aPPAct.match( sJump, nIndex + 1 ) )
{
- OUString aDestination( aPPAct.copy( nIndex + 1 + sJump.getLength() ) );
- sURL += "#action?jump=" + aDestination;
+ std::u16string_view aDestination( aPPAct.subView( nIndex + 1 + sJump.getLength() ) );
+ sURL += OUString::Concat("#action?jump=") + aDestination;
}
}
else if ( aPPAction.match( "hlinksldjump" ) )