summaryrefslogtreecommitdiff
path: root/svx/source/xml
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 18:22:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-02 08:01:26 +0200
commit32617df2f59b05ca5942fd18b3440ec834982565 (patch)
tree348c5a5671f7a81b86d0d436c33c224e2cb49d5f /svx/source/xml
parentfe3d9961e32fd7230e21716793adaddffdf2463e (diff)
loplugin:stringadd in svx
Change-Id: I47944e589c5261d26d5ef0c116a9173bf6ed1f03 Reviewed-on: https://gerrit.libreoffice.org/79983 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/xml')
-rw-r--r--svx/source/xml/xmleohlp.cxx6
-rw-r--r--svx/source/xml/xmlgrhlp.cxx6
2 files changed, 4 insertions, 8 deletions
diff --git a/svx/source/xml/xmleohlp.cxx b/svx/source/xml/xmleohlp.cxx
index 59fcdaa4db6d..96827d4e418c 100644
--- a/svx/source/xml/xmleohlp.cxx
+++ b/svx/source/xml/xmleohlp.cxx
@@ -449,8 +449,7 @@ OUString SvXMLEmbeddedObjectHelper::ImplInsertEmbeddedObjectURL(
}
ImplReadObject( aContainerStorageName, aObjectStorageName, pClassId, pOut ? pOut->GetStream() : nullptr );
- sRetURL = XML_EMBEDDEDOBJECT_URL_BASE;
- sRetURL += aObjectStorageName;
+ sRetURL = XML_EMBEDDEDOBJECT_URL_BASE + aObjectStorageName;
if( pOut )
{
@@ -463,8 +462,7 @@ OUString SvXMLEmbeddedObjectHelper::ImplInsertEmbeddedObjectURL(
sRetURL = "./";
if( !aContainerStorageName.isEmpty() )
{
- sRetURL += aContainerStorageName;
- sRetURL += "/";
+ sRetURL += aContainerStorageName + "/";
}
sRetURL += aObjectStorageName;
}
diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx
index 82f48337df01..14f9313c625d 100644
--- a/svx/source/xml/xmlgrhlp.cxx
+++ b/svx/source/xml/xmlgrhlp.cxx
@@ -844,8 +844,7 @@ OUString SvXMLGraphicHelper::implSaveGraphic(css::uno::Reference<css::graphic::X
if (xStorage.is())
xStorage->commit();
- OUString aStoragePath("Pictures/");
- aStoragePath += rPictureStreamName;
+ OUString aStoragePath = "Pictures/" + rPictureStreamName;
// put into cache
maExportGraphics[aGraphic] = std::make_pair(aStoragePath, rOutSavedMimeType);
@@ -923,8 +922,7 @@ OUString SAL_CALL SvXMLGraphicHelper::resolveOutputStream( const Reference< XOut
if( !aId.isEmpty() )
{
- aRet = XML_GRAPHICOBJECT_URL_BASE;
- aRet += aId;
+ aRet = XML_GRAPHICOBJECT_URL_BASE + aId;
}
}
}