From 7e76ea4bcc720826be457ac6ea26fba36193f006 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 9 Sep 2021 15:34:56 +0200 Subject: fix std::move same object more than once after commit 8104d771b10a5c8b15eae4b67aa112ae2ef77b5b tdf#144052 reduce Primitive2D copying spotted by mikekanganski Change-Id: I97e4675a9042cfafa3f9f6c053ba2f50aeea2183 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121852 Tested-by: Jenkins Reviewed-by: Noel Grandin --- drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drawinglayer') diff --git a/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx b/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx index 958d3bf17960..7566f8be9384 100644 --- a/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx +++ b/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx @@ -73,7 +73,7 @@ namespace drawinglayer::primitive2d { rContainer.push_back(new TransformPrimitive2D( getTransformation() * aMatrices[a], - std::move(xSeq))); + Primitive2DContainer(xSeq))); } } else -- cgit