diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-05 18:46:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-06 07:13:56 +0200 |
commit | cf739db1d6261c43b5b28c6795a4b5b30156478f (patch) | |
tree | c098d6e16440a7f938d145d324421ec6c3e10d0d /sd | |
parent | 547d8dacffc87586597d43e0e0378b4bb86b67a8 (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 'sd')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index 50fe9e93b755..d332e8cfb65f 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -265,7 +265,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewRedirector::createRedirected const double fFullDotDashLen(::std::accumulate(aDotDashArray.begin(), aDotDashArray.end(), 0.0)); const drawinglayer::attribute::LineAttribute aLine(aRGBColor); - const drawinglayer::attribute::StrokeAttribute aStroke(aDotDashArray, fFullDotDashLen); + const drawinglayer::attribute::StrokeAttribute aStroke(std::move(aDotDashArray), fFullDotDashLen); // create primitive and add const drawinglayer::primitive2d::Primitive2DReference xRef(new drawinglayer::primitive2d::PolygonStrokePrimitive2D( @@ -402,7 +402,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewRedirector::createRedirected fPosX, fPosY)); // create DXTextArray (can be empty one) - const ::std::vector< double > aDXArray{}; + ::std::vector< double > aDXArray{}; // create locale; this may need some more information in the future const css::lang::Locale aLocale; @@ -414,7 +414,7 @@ drawinglayer::primitive2d::Primitive2DContainer ViewRedirector::createRedirected aObjectString, 0, nTextLength, - aDXArray, + std::move(aDXArray), aFontAttribute, aLocale, aRGBColor)); |