diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 09:44:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-07-14 11:18:21 +0200 |
commit | 2d009c405714934ae5f95f4131510cb4e9c2493f (patch) | |
tree | 33670e0adb62d646a3e7ecdfadee92e25222be22 /vcl/source/outdev | |
parent | bdd97cb83e09225905a6272caf91579a0a77d3c2 (diff) |
loplugin:moveit
Change-Id: I2702e716dc669ffbb870d36d060e110288d7a744
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137043
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/outdev')
-rw-r--r-- | vcl/source/outdev/gradient.cxx | 2 | ||||
-rw-r--r-- | vcl/source/outdev/polyline.cxx | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/vcl/source/outdev/gradient.cxx b/vcl/source/outdev/gradient.cxx index eb2fd4645323..fd8ee9e60a7d 100644 --- a/vcl/source/outdev/gradient.cxx +++ b/vcl/source/outdev/gradient.cxx @@ -195,7 +195,7 @@ void OutputDevice::DrawGradientToMetafile ( const tools::PolyPolygon& rPolyPoly, if ( rPolyPoly.IsRect() ) { - mpMetaFile->AddAction( new MetaGradientAction( aBoundRect, aGradient ) ); + mpMetaFile->AddAction( new MetaGradientAction( aBoundRect, std::move(aGradient) ) ); } else { diff --git a/vcl/source/outdev/polyline.cxx b/vcl/source/outdev/polyline.cxx index f699147c2edf..04b39c60415d 100644 --- a/vcl/source/outdev/polyline.cxx +++ b/vcl/source/outdev/polyline.cxx @@ -163,8 +163,8 @@ void OutputDevice::DrawPolyLine( const basegfx::B2DPolygon& rB2DPolygon, aLineInfo.SetLineJoin(eLineJoin); aLineInfo.SetLineCap(eLineCap); - const tools::Polygon aToolsPolygon( rB2DPolygon ); - mpMetaFile->AddAction( new MetaPolyLineAction( aToolsPolygon, aLineInfo ) ); + tools::Polygon aToolsPolygon( rB2DPolygon ); + mpMetaFile->AddAction( new MetaPolyLineAction( std::move(aToolsPolygon), std::move(aLineInfo) ) ); } // Do not paint empty PolyPolygons @@ -330,8 +330,8 @@ bool OutputDevice::DrawPolyLineDirect( aLineInfo.SetLineJoin(eLineJoin); aLineInfo.SetLineCap(eLineCap); // MiterMinimumAngle does not exist yet in LineInfo - const tools::Polygon aToolsPolygon( rB2DPolygon ); - mpMetaFile->AddAction( new MetaPolyLineAction( aToolsPolygon, aLineInfo ) ); + tools::Polygon aToolsPolygon( rB2DPolygon ); + mpMetaFile->AddAction( new MetaPolyLineAction( std::move(aToolsPolygon), std::move(aLineInfo) ) ); } return true; } |