diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-13 18:46:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-16 09:16:01 +0200 |
commit | a447b5b6d1114111c92e5e3e3f3ae83d4c2f3bca (patch) | |
tree | 82c276f8d1e5364e5e5bcc0efda0e485411bee3a /svgio/source/svgreader | |
parent | 578521ed67ff905bcd2e1b56f0fee6a0635b41e7 (diff) |
loplugin:moveit
Change-Id: Ic593974a44d9e327e0385c7ffaaa6d42576ae01a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135911
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/source/svgreader')
-rw-r--r-- | svgio/source/svgreader/svgclippathnode.cxx | 2 | ||||
-rw-r--r-- | svgio/source/svgreader/svgstyleattributes.cxx | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/svgio/source/svgreader/svgclippathnode.cxx b/svgio/source/svgreader/svgclippathnode.cxx index 31ac632d33dc..826175c0865b 100644 --- a/svgio/source/svgreader/svgclippathnode.cxx +++ b/svgio/source/svgreader/svgclippathnode.cxx @@ -233,7 +233,7 @@ namespace svgio::svgreader // and strokeWidth and forced to black drawinglayer::primitive2d::Primitive2DReference xEmbedTransparence( new drawinglayer::primitive2d::MaskPrimitive2D( - aClipPolyPolygon, + std::move(aClipPolyPolygon), std::move(rContent))); rContent = drawinglayer::primitive2d::Primitive2DContainer { xEmbedTransparence }; diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 21ef7cebf5cf..a2ed97a940ed 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -735,12 +735,12 @@ namespace svgio::svgreader } else { - const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashArray)); + drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashArray)); aNewLinePrimitive = new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D( rPath, aLineAttribute, - aStrokeAttribute); + std::move(aStrokeAttribute)); } } @@ -1067,7 +1067,7 @@ namespace svgio::svgreader aClipPolygon.transform(aCombinedTransform); xMarker = new drawinglayer::primitive2d::MaskPrimitive2D( - aClipPolygon, + std::move(aClipPolygon), drawinglayer::primitive2d::Primitive2DContainer { xMarker }); } |