summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/shapeexport.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-05 16:05:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-05 20:55:15 +0200
commit49f6b97b3813eb5752088d5b5805c3389eb9c8a8 (patch)
tree9f43a4fef0e2c2a63872f15187bae85cdb51ac75 /xmloff/source/draw/shapeexport.cxx
parentf254edd9ff54c76e7e8aa32c1b0c80d1831a6dec (diff)
Upcoming loplugin:elidestringvar: xmloff
Change-Id: I42210925cc560fa32316c2ad7b7732c7624b1a05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95606 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmloff/source/draw/shapeexport.cxx')
-rw-r--r--xmloff/source/draw/shapeexport.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index aeb12d61c1c8..533032482b45 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -2374,8 +2374,7 @@ void XMLShapeExport::ImpExportGraphicObjectShape(
// apply possible changed stream URL to embedded image object
if (!sRequestedName.isEmpty())
{
- const OUString sPackageURL("vnd.sun.star.Package:");
- OUString newStreamURL = sPackageURL;
+ OUString newStreamURL = "vnd.sun.star.Package:";
if (sInternalURL[0] == '#')
{
newStreamURL += sInternalURL.copy(1, sInternalURL.getLength() - 1);
@@ -3333,14 +3332,12 @@ void XMLShapeExport::ImpExportMediaShape(
delete new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, false, true );
sal_Int16 nVolumeDB = 0;
- const OUString aVolumeDBStr( "VolumeDB" );
xPropSet->getPropertyValue("VolumeDB") >>= nVolumeDB;
- mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, aVolumeDBStr );
+ mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, "VolumeDB" );
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, OUString::number( nVolumeDB ) );
delete new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, false, true );
media::ZoomLevel eZoom;
- const OUString aZoomStr( "Zoom" );
OUString aZoomValue;
xPropSet->getPropertyValue("Zoom") >>= eZoom;
switch( eZoom )
@@ -3360,7 +3357,7 @@ void XMLShapeExport::ImpExportMediaShape(
if( !aZoomValue.isEmpty() )
{
- mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, aZoomStr );
+ mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_NAME, "Zoom" );
mrExport.AddAttribute( XML_NAMESPACE_DRAW, XML_VALUE, aZoomValue );
delete new SvXMLElementExport( mrExport, XML_NAMESPACE_DRAW, XML_PARAM, false, true );
}