[Libreoffice-commits] core.git: drawinglayer/source

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu Sep 9 14:26:22 UTC 2021


 drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 7e76ea4bcc720826be457ac6ea26fba36193f006
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Thu Sep 9 15:34:56 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu Sep 9 16:25:48 2021 +0200

    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 <noel.grandin at collabora.co.uk>

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


More information about the Libreoffice-commits mailing list