From c8d2fa176a15a7ae76d6a4b76aea5f108313c2ec Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 23 Sep 2021 15:35:34 +0200 Subject: 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 --- sd/source/ui/animations/motionpathtag.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/animations/motionpathtag.cxx b/sd/source/ui/animations/motionpathtag.cxx index 360c709ac7ad..72bf2d1620b4 100644 --- a/sd/source/ui/animations/motionpathtag.cxx +++ b/sd/source/ui/animations/motionpathtag.cxx @@ -301,7 +301,7 @@ void SdPathHdl::CreateB2dIAObject() { const sdr::contact::ViewContact& rVC = mpPathObj->GetViewContact(); const drawinglayer::primitive2d::Primitive2DContainer& aSequence = rVC.getViewIndependentPrimitive2DContainer(); - std::unique_ptr pNew(new sdr::overlay::OverlayPrimitive2DSequenceObject(aSequence)); + std::unique_ptr pNew(new sdr::overlay::OverlayPrimitive2DSequenceObject(drawinglayer::primitive2d::Primitive2DContainer(aSequence))); // OVERLAYMANAGER insertNewlyCreatedOverlayObjectForSdrHdl( -- cgit