summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-28 12:47:31 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-28 16:10:16 +0200
commitf757f152b1d2267e92a1100a9db58bf6e5aa8d3c (patch)
tree6a6299409d3bf848775f3ebda5de66ce229ce88b /svx
parent4149201b099487c5b46d7015b0c174dfff1841ec (diff)
use more string_view in tools::SvGlobalName
Change-Id: I814744d250d6ce0ec7049daf215a506adb4f1ac5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133548 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/xml/xmleohlp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx
index e3fcf6100940..3a57b1754775 100644
--- a/svx/source/xml/xmleohlp.cxx
+++ b/svx/source/xml/xmleohlp.cxx
@@ -438,7 +438,7 @@ OUString SvXMLEmbeddedObjectHelper::ImplInsertEmbeddedObjectURL(
SvGlobalName aClassId, *pClassId = nullptr;
sal_Int32 nPos = aObjectStorageName.lastIndexOf( '!' );
- if( -1 != nPos && aClassId.MakeId( aObjectStorageName.copy( nPos+1 ) ) )
+ if( -1 != nPos && aClassId.MakeId( aObjectStorageName.subView( nPos+1 ) ) )
{
aObjectStorageName = aObjectStorageName.copy( 0, nPos );
pClassId = &aClassId;