summaryrefslogtreecommitdiff
path: root/svx/source/sdr/overlay
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-23 15:35:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-24 11:33:32 +0200
commitc8d2fa176a15a7ae76d6a4b76aea5f108313c2ec (patch)
tree96cee630060986d6d2ab68b1ce2ca09a6a4fe922 /svx/source/sdr/overlay
parente1600348e49e1538459a0374fd97cd3173d4a4b9 (diff)
reduce copying in drawinglayer
by passing PrimitiveContainer&& around. There are lots of place where we were preparing a local variable of type PrimitiveContainer, and then copying it someplace else, then throwing it away. Change-Id: Iacfd983640c9e55da25800ccc01734dfc8b4d64a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/sdr/overlay')
-rw-r--r--svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx b/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx
index 9b589ed04fba..eabd290f821a 100644
--- a/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx
+++ b/svx/source/sdr/overlay/overlayprimitive2dsequenceobject.cxx
@@ -28,9 +28,9 @@ namespace sdr::overlay
return maSequence;
}
- OverlayPrimitive2DSequenceObject::OverlayPrimitive2DSequenceObject(const drawinglayer::primitive2d::Primitive2DContainer& rSequence)
+ OverlayPrimitive2DSequenceObject::OverlayPrimitive2DSequenceObject(drawinglayer::primitive2d::Primitive2DContainer&& rSequence)
: OverlayObjectWithBasePosition(basegfx::B2DPoint(), COL_BLACK),
- maSequence(rSequence)
+ maSequence(std::move(rSequence))
{
}