diff options
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx | 8 | ||||
-rw-r--r-- | drawinglayer/source/processor3d/defaultprocessor3d.cxx | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx index a5f49e9e654b..a365beebae4d 100644 --- a/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx @@ -2258,7 +2258,7 @@ void VclMetafileProcessor2D::processMaskPrimitive2D( else { // use mask directly - maClipPolyPolygon = aMask; + maClipPolyPolygon = std::move(aMask); } if (maClipPolyPolygon.count()) @@ -2501,9 +2501,9 @@ void VclMetafileProcessor2D::processTransparencePrimitive2D( // VclMetafileProcessor2D anyways to allow to get it // completely independent from OutputDevice in the long run GDIMetaFile* pMetaFile(mpOutputDevice->GetConnectMetaFile()); - rtl::Reference<::MetaFloatTransparentAction> pAction( - new MetaFloatTransparentAction(aContentMetafile, aPrimitiveRectangle.TopLeft(), - aPrimitiveRectangle.GetSize(), aVCLGradient)); + rtl::Reference<::MetaFloatTransparentAction> pAction(new MetaFloatTransparentAction( + aContentMetafile, aPrimitiveRectangle.TopLeft(), aPrimitiveRectangle.GetSize(), + std::move(aVCLGradient))); pAction->addSVGTransparencyColorStops(aSVGTransparencyColorStops); pMetaFile->AddAction(pAction); diff --git a/drawinglayer/source/processor3d/defaultprocessor3d.cxx b/drawinglayer/source/processor3d/defaultprocessor3d.cxx index 5f316879b4c5..7331ed842165 100644 --- a/drawinglayer/source/processor3d/defaultprocessor3d.cxx +++ b/drawinglayer/source/processor3d/defaultprocessor3d.cxx @@ -154,13 +154,9 @@ namespace drawinglayer::processor3d // set created texture if(bTransparence) - { - mpTransparenceGeoTexSvx = pNewTex; - } + mpTransparenceGeoTexSvx = std::move(pNewTex); else - { - mpGeoTexSvx = pNewTex; - } + mpGeoTexSvx = std::move(pNewTex); // process sub-list process(rSubSequence); |