From 8104d771b10a5c8b15eae4b67aa112ae2ef77b5b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 9 Sep 2021 13:00:23 +0200 Subject: tdf#144052 reduce Primitive2D copying when creating charts, by using a Primitive2DContainer&& parameter in the GroupPrimitive2D constructor, which forces the call sites to pass a temporary, and at most call sites, we can std::move in an existing local variable. Change-Id: I531970918800c6832ab606b5a4ff5fd2d47ccf5b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121844 Tested-by: Jenkins Reviewed-by: Noel Grandin --- drawinglayer/inc/primitive2d/cropprimitive2d.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawinglayer/inc') diff --git a/drawinglayer/inc/primitive2d/cropprimitive2d.hxx b/drawinglayer/inc/primitive2d/cropprimitive2d.hxx index 86297687ad5f..3bed0638f254 100644 --- a/drawinglayer/inc/primitive2d/cropprimitive2d.hxx +++ b/drawinglayer/inc/primitive2d/cropprimitive2d.hxx @@ -64,7 +64,7 @@ namespace drawinglayer::primitive2d public: /// constructor CropPrimitive2D( - const Primitive2DContainer& rChildren, + Primitive2DContainer&& aChildren, const basegfx::B2DHomMatrix& rTransformation, double fCropLeft, double fCropTop, -- cgit