summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-05 18:46:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-06 07:13:56 +0200
commitcf739db1d6261c43b5b28c6795a4b5b30156478f (patch)
treec098d6e16440a7f938d145d324421ec6c3e10d0d /sw
parent547d8dacffc87586597d43e0e0378b4bb86b67a8 (diff)
loplugin:moveparam in drawinglayer
Change-Id: I428116d96a011b061dda8376b6f27fb135a62964 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123114 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/layout/paintfrm.cxx2
-rw-r--r--sw/source/uibase/docvw/AnchorOverlayObject.cxx2
-rw-r--r--sw/source/uibase/docvw/DashedLine.cxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx
index 11ca12857070..554ddc4bbc44 100644
--- a/sw/source/core/layout/paintfrm.cxx
+++ b/sw/source/core/layout/paintfrm.cxx
@@ -3603,7 +3603,7 @@ static drawinglayer::primitive2d::Primitive2DContainer lcl_CreateDashedIndicator
new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D (
basegfx::B2DPolyPolygon( aLinePolygon ),
drawinglayer::attribute::LineAttribute( aColor ),
- drawinglayer::attribute::StrokeAttribute( aStrokePattern ) );
+ drawinglayer::attribute::StrokeAttribute( std::move(aStrokePattern) ) );
return aSeq;
diff --git a/sw/source/uibase/docvw/AnchorOverlayObject.cxx b/sw/source/uibase/docvw/AnchorOverlayObject.cxx
index f79dc813984d..1405021c6dfa 100644
--- a/sw/source/uibase/docvw/AnchorOverlayObject.cxx
+++ b/sw/source/uibase/docvw/AnchorOverlayObject.cxx
@@ -128,7 +128,7 @@ void AnchorPrimitive::create2DDecomposition(
aDotDashArray.push_back(fDistance);
const drawinglayer::attribute::StrokeAttribute aStrokeAttribute(
- aDotDashArray,
+ std::move(aDotDashArray),
fDistance + fDashLen);
const drawinglayer::primitive2d::Primitive2DReference aStrokedLine(
diff --git a/sw/source/uibase/docvw/DashedLine.cxx b/sw/source/uibase/docvw/DashedLine.cxx
index 629f77330aa7..4b2d04dc72ed 100644
--- a/sw/source/uibase/docvw/DashedLine.cxx
+++ b/sw/source/uibase/docvw/DashedLine.cxx
@@ -83,7 +83,7 @@ void SwDashedLine::Paint(vcl::RenderContext& rRenderContext, const tools::Rectan
new drawinglayer::primitive2d::PolyPolygonStrokePrimitive2D(
basegfx::B2DPolyPolygon(aPolygon),
drawinglayer::attribute::LineAttribute(m_pColorFn().getBColor()),
- drawinglayer::attribute::StrokeAttribute(aStrokePattern));
+ drawinglayer::attribute::StrokeAttribute(std::move(aStrokePattern)));
pProcessor->process(aSeq);
}