diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-01 20:55:05 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-02 08:00:28 +0200 |
commit | 7934085eb95cc0ff39e948525f0cc2b80edc0169 (patch) | |
tree | db728dddcd2f77103213bf3d46979aa3375768e7 /drawinglayer/source/primitive2d/patternfillprimitive2d.cxx | |
parent | 7b31f7428a1469fa823538fe5cf9cf36bbe2df68 (diff) |
new loplugin:moveparam
Look for places where we can pass Primitive2DContainer by move reference
and so avoid unnecessary copies.
Change-Id: I1db167feba6d1a616ca6fc39778118ae20106bd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122964
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'drawinglayer/source/primitive2d/patternfillprimitive2d.cxx')
-rw-r--r-- | drawinglayer/source/primitive2d/patternfillprimitive2d.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx index fc0538564896..cd4c58d11127 100644 --- a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx @@ -133,7 +133,7 @@ namespace drawinglayer::primitive2d const BitmapEx aBitmapEx( convertToBitmapEx( - xEmbedSeq, + std::move(xEmbedSeq), aViewInformation2D, mnDiscreteWidth, mnDiscreteHeight, @@ -191,10 +191,10 @@ namespace drawinglayer::primitive2d new primitive2d::TransformPrimitive2D( basegfx::utils::createScaleB2DHomMatrix(nWidth, nHeight), std::move(aContent))); - const primitive2d::Primitive2DContainer xEmbedSeq { xEmbedRef }; + primitive2d::Primitive2DContainer xEmbedSeq { xEmbedRef }; return convertToBitmapEx( - xEmbedSeq, + std::move(xEmbedSeq), aViewInformation2D, nWidth, nHeight, |