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 /sd | |
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 'sd')
-rw-r--r-- | sd/source/ui/view/sdview.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx index e6173fdb9a09..9ab22b73bf5b 100644 --- a/sd/source/ui/view/sdview.cxx +++ b/sd/source/ui/view/sdview.cxx @@ -276,13 +276,13 @@ void ViewRedirector::createRedirectedPrimitive2DSequence( const double fFullDotDashLen(::std::accumulate(aDotDashArray.begin(), aDotDashArray.end(), 0.0)); const drawinglayer::attribute::LineAttribute aLine(aRGBColor); - const drawinglayer::attribute::StrokeAttribute aStroke(std::move(aDotDashArray), fFullDotDashLen); + drawinglayer::attribute::StrokeAttribute aStroke(std::move(aDotDashArray), fFullDotDashLen); // create primitive and add const drawinglayer::primitive2d::Primitive2DReference xRef(new drawinglayer::primitive2d::PolygonStrokePrimitive2D( - aPolygon, + std::move(aPolygon), aLine, - aStroke)); + std::move(aStroke))); rVisitor.visit(xRef); } @@ -398,7 +398,7 @@ void ViewRedirector::createRedirectedPrimitive2DSequence( aVclFont.SetFontHeight( 500 ); - const drawinglayer::attribute::FontAttribute aFontAttribute( + drawinglayer::attribute::FontAttribute aFontAttribute( drawinglayer::primitive2d::getFontAttributeFromVclFont( aTextSizeAttribute, aVclFont, @@ -416,7 +416,7 @@ void ViewRedirector::createRedirectedPrimitive2DSequence( ::std::vector< double > aDXArray{}; // create locale; this may need some more information in the future - const css::lang::Locale aLocale; + css::lang::Locale aLocale; // create primitive and add const drawinglayer::primitive2d::Primitive2DReference xRef( @@ -426,8 +426,8 @@ void ViewRedirector::createRedirectedPrimitive2DSequence( 0, nTextLength, std::move(aDXArray), - aFontAttribute, - aLocale, + std::move(aFontAttribute), + std::move(aLocale), aRGBColor)); rVisitor.visit(xRef); } |