summaryrefslogtreecommitdiff
path: root/svgio/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-10-23 09:46:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-10-24 08:35:56 +0200
commit4e51d68dc3595dae8b2519e0a023c9b1ca13a8fd (patch)
treea73bff3750fae258b3b4321cc65e68f6ff8ed0c7 /svgio/source
parentec98adb2ec71882801a4db031c8e2bcf3075c5a0 (diff)
clang-tidy performance-unnecessary-copy-init in sfx2..svtools
Change-Id: I1e92472b4aaeca1eb1372bd18d10cc9e0766dc39 Reviewed-on: https://gerrit.libreoffice.org/62251 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/source')
-rw-r--r--svgio/source/svgreader/svgcharacternode.cxx2
-rw-r--r--svgio/source/svgreader/svgdocumenthandler.cxx2
-rw-r--r--svgio/source/svgreader/svgstyleattributes.cxx4
-rw-r--r--svgio/source/svgreader/svgtextpathnode.cxx2
4 files changed, 5 insertions, 5 deletions
diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx
index dbcf95a84f3f..70e99384b440 100644
--- a/svgio/source/svgreader/svgcharacternode.cxx
+++ b/svgio/source/svgreader/svgcharacternode.cxx
@@ -518,7 +518,7 @@ namespace svgio
if(pCandidate)
{
const localTextBreakupHelper alocalTextBreakupHelper(*pCandidate, rSvgTextPosition);
- const drawinglayer::primitive2d::Primitive2DContainer aResult(
+ const drawinglayer::primitive2d::Primitive2DContainer& aResult(
alocalTextBreakupHelper.getResult());
if(!aResult.empty())
diff --git a/svgio/source/svgreader/svgdocumenthandler.cxx b/svgio/source/svgreader/svgdocumenthandler.cxx
index b9ef76de8bf2..d32534d9896e 100644
--- a/svgio/source/svgreader/svgdocumenthandler.cxx
+++ b/svgio/source/svgreader/svgdocumenthandler.cxx
@@ -507,7 +507,7 @@ namespace svgio
if(pSvgTitleDescNode && mpTarget)
{
- const OUString aText(pSvgTitleDescNode->getText());
+ const OUString& aText(pSvgTitleDescNode->getText());
if(!aText.isEmpty())
{
diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx
index 7780d8aa4e5f..342cca90cace 100644
--- a/svgio/source/svgreader/svgstyleattributes.cxx
+++ b/svgio/source/svgreader/svgstyleattributes.cxx
@@ -677,7 +677,7 @@ namespace svgio
// the geometry for a single dot
if(1 == rPath.count())
{
- const basegfx::B2DPolygon aSingle(rPath.getB2DPolygon(0));
+ const basegfx::B2DPolygon& aSingle(rPath.getB2DPolygon(0));
if(2 == aSingle.count() && aSingle.getB2DPoint(0).equal(aSingle.getB2DPoint(1)))
{
@@ -925,7 +925,7 @@ namespace svgio
for (sal_uInt32 a(0); a < nSubPathCount; a++)
{
// iterate over sub-paths
- const basegfx::B2DPolygon aSubPolygonPath(rPath.getB2DPolygon(a));
+ const basegfx::B2DPolygon& aSubPolygonPath(rPath.getB2DPolygon(a));
const sal_uInt32 nSubPolygonPointCount(aSubPolygonPath.count());
const bool bSubPolygonPathIsClosed(aSubPolygonPath.isClosed());
diff --git a/svgio/source/svgreader/svgtextpathnode.cxx b/svgio/source/svgreader/svgtextpathnode.cxx
index 6644996ee101..4e7567566317 100644
--- a/svgio/source/svgreader/svgtextpathnode.cxx
+++ b/svgio/source/svgreader/svgtextpathnode.cxx
@@ -418,7 +418,7 @@ namespace svgio
fPosition,
rTextStart);
- const drawinglayer::primitive2d::Primitive2DContainer aResult(
+ const drawinglayer::primitive2d::Primitive2DContainer& aResult(
aPathTextBreakupHelper.getResult());
if(!aResult.empty())