summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/ximpshap.cxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2020-12-17 16:23:57 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-12-18 07:56:54 +0100
commitd9b8670548561f7f53a546b8fe53212c6b1ce26e (patch)
treef81854d5bf867dfc4eb7da2f31632656c745969c /xmloff/source/draw/ximpshap.cxx
parent8c9a4ff511a3b1d84a7a6d08a1b153c07f164abb (diff)
use more string_view in convertEnum
Change-Id: I859de4b908672722e1873c5b41cb456b42258ddd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107885 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/draw/ximpshap.cxx')
-rw-r--r--xmloff/source/draw/ximpshap.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmloff/source/draw/ximpshap.cxx b/xmloff/source/draw/ximpshap.cxx
index 895303e0cd52..cb28c4735415 100644
--- a/xmloff/source/draw/ximpshap.cxx
+++ b/xmloff/source/draw/ximpshap.cxx
@@ -286,7 +286,7 @@ void SdXMLShapeContext::addGluePoint( const uno::Reference< xml::sax::XFastAttri
case XML_ELEMENT(DRAW, XML_ALIGN):
{
drawing::Alignment eKind;
- if( SvXMLUnitConverter::convertEnum( eKind, aIter.toString(), aXML_GlueAlignment_EnumMap ) )
+ if( SvXMLUnitConverter::convertEnum( eKind, aIter.toView(), aXML_GlueAlignment_EnumMap ) )
{
aGluePoint.PositionAlignment = eKind;
aGluePoint.IsRelative = false;
@@ -295,7 +295,7 @@ void SdXMLShapeContext::addGluePoint( const uno::Reference< xml::sax::XFastAttri
}
case XML_ELEMENT(DRAW, XML_ESCAPE_DIRECTION):
{
- SvXMLUnitConverter::convertEnum( aGluePoint.Escape, aIter.toString(), aXML_GlueEscapeDirection_EnumMap );
+ SvXMLUnitConverter::convertEnum( aGluePoint.Escape, aIter.toView(), aXML_GlueEscapeDirection_EnumMap );
break;
}
default:
@@ -1132,7 +1132,7 @@ bool SdXMLEllipseShapeContext::processAttribute( const sax_fastparser::FastAttri
mnRY = mnRX;
break;
case XML_ELEMENT(DRAW, XML_KIND):
- SvXMLUnitConverter::convertEnum( meKind, aIter.toString(), aXML_CircleKind_EnumMap );
+ SvXMLUnitConverter::convertEnum( meKind, aIter.toView(), aXML_CircleKind_EnumMap );
break;
case XML_ELEMENT(DRAW, XML_START_ANGLE):
{
@@ -1771,7 +1771,7 @@ bool SdXMLConnectorShapeContext::processAttribute( const sax_fastparser::FastAtt
}
case XML_ELEMENT(DRAW, XML_TYPE):
{
- (void)SvXMLUnitConverter::convertEnum( mnType, aIter.toString(), aXML_ConnectionKind_EnumMap );
+ (void)SvXMLUnitConverter::convertEnum( mnType, aIter.toView(), aXML_ConnectionKind_EnumMap );
break;
}
// #121965# draw:transform may be used in ODF1.2, e.g. exports from MS seem to use these