summaryrefslogtreecommitdiff
path: root/xmloff/source/style
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-07 13:05:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-07 15:21:33 +0200
commitadf419792743a4c79b2054e42618dff75bb552ce (patch)
tree18869048ab4255831c5846709ebd522e0bd64ca3 /xmloff/source/style
parent23f80b26098bcf9a8ae870e8ded878cca6e0c541 (diff)
elide some string copies
Change-Id: I3e0d9f7e5a446689e007b9d01fb1c6bf9bc068e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136880 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style')
-rw-r--r--xmloff/source/style/fonthdl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/fonthdl.cxx b/xmloff/source/style/fonthdl.cxx
index 144de999cb78..3d736a1f1a75 100644
--- a/xmloff/source/style/fonthdl.cxx
+++ b/xmloff/source/style/fonthdl.cxx
@@ -160,7 +160,7 @@ bool XMLFontFamilyNamePropHdl::exportXML( OUString& rStrExpValue, const uno::Any
sValue.append( ' ' );
}
sal_Int32 nLen = nLast-nFirst+1;
- OUString sFamily( aStrFamilyName.copy( nFirst, nLen ) );
+ std::u16string_view sFamily( aStrFamilyName.subView( nFirst, nLen ) );
bool bQuote = false;
for( sal_Int32 i=0; i < nLen; i++ )
{