From cf739db1d6261c43b5b28c6795a4b5b30156478f Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 5 Oct 2021 18:46:30 +0200 Subject: loplugin:moveparam in drawinglayer Change-Id: I428116d96a011b061dda8376b6f27fb135a62964 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123114 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svgio/source/svgreader/svgcharacternode.cxx | 4 ++-- svgio/source/svgreader/svgstyleattributes.cxx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'svgio/source') diff --git a/svgio/source/svgreader/svgcharacternode.cxx b/svgio/source/svgreader/svgcharacternode.cxx index d561a447384f..af03919ccde3 100644 --- a/svgio/source/svgreader/svgcharacternode.cxx +++ b/svgio/source/svgreader/svgcharacternode.cxx @@ -431,7 +431,7 @@ namespace svgio::svgreader getText(), nIndex, nLength, - aTextArray, + std::move(aTextArray), aFontAttribute, aLocale, aFill, @@ -459,7 +459,7 @@ namespace svgio::svgreader getText(), nIndex, nLength, - aTextArray, + std::move(aTextArray), aFontAttribute, aLocale, aFill); diff --git a/svgio/source/svgreader/svgstyleattributes.cxx b/svgio/source/svgreader/svgstyleattributes.cxx index 3ad148c4624c..62133fbb11fb 100644 --- a/svgio/source/svgreader/svgstyleattributes.cxx +++ b/svgio/source/svgreader/svgstyleattributes.cxx @@ -398,7 +398,7 @@ namespace svgio::svgreader new drawinglayer::primitive2d::SvgLinearGradientPrimitive2D( aGradientTransform, rPath, - aSvgGradientEntryVector, + std::move(aSvgGradientEntryVector), aStart, aEnd, SvgUnits::userSpaceOnUse != rFillGradient.getGradientUnits(), @@ -459,7 +459,7 @@ namespace svgio::svgreader new drawinglayer::primitive2d::SvgRadialGradientPrimitive2D( aGradientTransform, rPath, - aSvgGradientEntryVector, + std::move(aSvgGradientEntryVector), aStart, fRadius, SvgUnits::userSpaceOnUse != rFillGradient.getGradientUnits(), @@ -734,7 +734,7 @@ namespace svgio::svgreader } else { - const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(aDashArray); + const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(std::move(aDashArray)); aNewLinePrimitive = new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D( rPath, -- cgit