summaryrefslogtreecommitdiff
path: root/emfio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-12-30 14:36:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-12-31 16:03:43 +0100
commit17ee20b161cf5825e25d120c84675d11f7282256 (patch)
tree8151eee99d8864a0cdff485a440f93e5607b09b0 /emfio
parentd4d0b1a2b9f11fb7629559e08c345697ba129c04 (diff)
loplugin:passstuffbyref improved return in emfio,writerfilter
Change-Id: I237936d62d0f1b17574dd88b5c9de932dc03238e Reviewed-on: https://gerrit.libreoffice.org/47214 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'emfio')
-rw-r--r--emfio/inc/mtftools.hxx2
-rw-r--r--emfio/source/reader/mtftools.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/emfio/inc/mtftools.hxx b/emfio/inc/mtftools.hxx
index 9d8efc8a0a51..6c12078f051e 100644
--- a/emfio/inc/mtftools.hxx
+++ b/emfio/inc/mtftools.hxx
@@ -280,7 +280,7 @@ namespace emfio
bool isEmpty() const { return maClip.isCleared(); }
- basegfx::B2DPolyPolygon getClipPath() const;
+ basegfx::B2DPolyPolygon const & getClipPath() const;
bool operator==(const WinMtfClipPath& rPath) const
{
diff --git a/emfio/source/reader/mtftools.cxx b/emfio/source/reader/mtftools.cxx
index 2b81e5b9bdc5..55fd4ddb36ae 100644
--- a/emfio/source/reader/mtftools.cxx
+++ b/emfio/source/reader/mtftools.cxx
@@ -115,7 +115,7 @@ namespace emfio
maClip = basegfx::utils::B2DClipState();
}
- basegfx::B2DPolyPolygon WinMtfClipPath::getClipPath() const
+ basegfx::B2DPolyPolygon const & WinMtfClipPath::getClipPath() const
{
return maClip.getClipPoly();
}