summaryrefslogtreecommitdiff
path: root/include/drawinglayer/primitive2d
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-22 09:43:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-22 12:30:15 +0200
commit58418e9a85a007f550d9deb02729fc0c96cc1efd (patch)
tree9dcfb94b5c131a099d2c65f49ebaafa6ad2bba49 /include/drawinglayer/primitive2d
parent41ccb5c63c94e54b07707eca62bed761c87b0d10 (diff)
reduce copying in BufferedDecompositionPrimitive2D
Change-Id: I2393c45c064ea423b7ea1b70e1f16e1a4cea2bef Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122419 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/drawinglayer/primitive2d')
-rw-r--r--include/drawinglayer/primitive2d/BufferedDecompositionPrimitive2D.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/drawinglayer/primitive2d/BufferedDecompositionPrimitive2D.hxx b/include/drawinglayer/primitive2d/BufferedDecompositionPrimitive2D.hxx
index 66bb9f29af24..c09635c6d60d 100644
--- a/include/drawinglayer/primitive2d/BufferedDecompositionPrimitive2D.hxx
+++ b/include/drawinglayer/primitive2d/BufferedDecompositionPrimitive2D.hxx
@@ -79,9 +79,9 @@ protected:
{
return maBuffered2DDecomposition;
}
- void setBuffered2DDecomposition(const Primitive2DContainer& rNew)
+ void setBuffered2DDecomposition(Primitive2DContainer&& rNew)
{
- maBuffered2DDecomposition = rNew;
+ maBuffered2DDecomposition = std::move(rNew);
}
/** method which is to be used to implement the local decomposition of a 2D primitive. */