summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slide
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 16:08:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-11 18:43:21 +0200
commit043ba6ddf8d90b04acfae8ec836c4b772fb36754 (patch)
tree3eda87f966654b46f85086f6814dcb77a1f8c1f1 /slideshow/source/engine/slide
parent47331ae6f95070ff7460e541895895b59eb15103 (diff)
loplugin:moveparam in slideshow
Change-Id: I67ec3e8b7f5a9b6f6463dace95ab7e4a64469d8b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123415 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/engine/slide')
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx12
-rw-r--r--slideshow/source/engine/slide/userpaintoverlay.cxx12
-rw-r--r--slideshow/source/engine/slide/userpaintoverlay.hxx4
3 files changed, 14 insertions, 14 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index f5f5d2a56861..4809cc4dc83f 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -80,7 +80,7 @@ public:
const uno::Reference<uno::XComponentContext>& xContext,
const ShapeEventListenerMap& rShapeListenerMap,
const ShapeCursorMap& rShapeCursorMap,
- const PolyPolygonVector& rPolyPolygonVector,
+ PolyPolygonVector&& rPolyPolygonVector,
RGBColor const& rUserPaintColor,
double dUserPaintStrokeWidth,
bool bUserPaintEnabled,
@@ -301,7 +301,7 @@ SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDra
const uno::Reference< uno::XComponentContext >& xComponentContext,
const ShapeEventListenerMap& rShapeListenerMap,
const ShapeCursorMap& rShapeCursorMap,
- const PolyPolygonVector& rPolyPolygonVector,
+ PolyPolygonVector&& rPolyPolygonVector,
RGBColor const& aUserPaintColor,
double dUserPaintStrokeWidth,
bool bUserPaintEnabled,
@@ -337,7 +337,7 @@ SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDra
mrCursorManager( rCursorManager ),
maAnimations( maContext,
basegfx::B2DSize( getSlideSizeImpl() ) ),
- maPolygons(rPolyPolygonVector),
+ maPolygons(std::move(rPolyPolygonVector)),
maUserPaintColor(aUserPaintColor),
mdUserPaintStrokeWidth(dUserPaintStrokeWidth),
mpPaintOverlay(),
@@ -806,7 +806,7 @@ void SlideImpl::activatePaintOverlay()
mpPaintOverlay = UserPaintOverlay::create( maUserPaintColor,
mdUserPaintStrokeWidth,
maContext,
- maPolygons,
+ std::vector(maPolygons),
mbUserPaintOverlayEnabled );
mbPaintOverlayActive = true;
}
@@ -1105,7 +1105,7 @@ SlideSharedPtr createSlide( const uno::Reference< drawing::XDrawPage >&
const uno::Reference< uno::XComponentContext >& xComponentContext,
const ShapeEventListenerMap& rShapeListenerMap,
const ShapeCursorMap& rShapeCursorMap,
- const PolyPolygonVector& rPolyPolygonVector,
+ PolyPolygonVector&& rPolyPolygonVector,
RGBColor const& rUserPaintColor,
double dUserPaintStrokeWidth,
bool bUserPaintEnabled,
@@ -1117,7 +1117,7 @@ SlideSharedPtr createSlide( const uno::Reference< drawing::XDrawPage >&
rActivitiesQueue, rUserEventQueue,
rCursorManager, rMediaFileManager, rViewContainer,
xComponentContext, rShapeListenerMap,
- rShapeCursorMap, rPolyPolygonVector, rUserPaintColor,
+ rShapeCursorMap, std::move(rPolyPolygonVector), rUserPaintColor,
dUserPaintStrokeWidth, bUserPaintEnabled,
bIntrinsicAnimationsAllowed,
bDisableAnimationZOrder );
diff --git a/slideshow/source/engine/slide/userpaintoverlay.cxx b/slideshow/source/engine/slide/userpaintoverlay.cxx
index ea66490633e2..d635fc60a234 100644
--- a/slideshow/source/engine/slide/userpaintoverlay.cxx
+++ b/slideshow/source/engine/slide/userpaintoverlay.cxx
@@ -51,11 +51,11 @@ namespace slideshow::internal
ScreenUpdater& rScreenUpdater,
const UnoViewContainer& rViews,
Slide& rSlide,
- const PolyPolygonVector& rPolygons,
+ PolyPolygonVector&& rPolygons,
bool bActive ) :
mrScreenUpdater( rScreenUpdater ),
maViews(),
- maPolygons( rPolygons ),
+ maPolygons( std::move(rPolygons) ),
maStrokeColor( rStrokeColor ),
mnStrokeWidth( nStrokeWidth ),
maLastPoint(),
@@ -424,13 +424,13 @@ namespace slideshow::internal
UserPaintOverlaySharedPtr UserPaintOverlay::create( const RGBColor& rStrokeColor,
double nStrokeWidth,
const SlideShowContext& rContext,
- const PolyPolygonVector& rPolygons,
+ PolyPolygonVector&& rPolygons,
bool bActive )
{
UserPaintOverlaySharedPtr pRet( new UserPaintOverlay( rStrokeColor,
nStrokeWidth,
rContext,
- rPolygons,
+ std::move(rPolygons),
bActive));
return pRet;
@@ -439,7 +439,7 @@ namespace slideshow::internal
UserPaintOverlay::UserPaintOverlay( const RGBColor& rStrokeColor,
double nStrokeWidth,
const SlideShowContext& rContext,
- const PolyPolygonVector& rPolygons,
+ PolyPolygonVector&& rPolygons,
bool bActive ) :
mpHandler( std::make_shared<PaintOverlayHandler>( rStrokeColor,
nStrokeWidth,
@@ -447,7 +447,7 @@ namespace slideshow::internal
rContext.mrViewContainer,
//adding a link to Slide
dynamic_cast<Slide&>(rContext.mrCursorManager),
- rPolygons, bActive )),
+ std::move(rPolygons), bActive )),
mrMultiplexer( rContext.mrEventMultiplexer )
{
mrMultiplexer.addClickHandler( mpHandler, 3.0 );
diff --git a/slideshow/source/engine/slide/userpaintoverlay.hxx b/slideshow/source/engine/slide/userpaintoverlay.hxx
index 8e9f57d30388..ae443a0fa758 100644
--- a/slideshow/source/engine/slide/userpaintoverlay.hxx
+++ b/slideshow/source/engine/slide/userpaintoverlay.hxx
@@ -57,7 +57,7 @@ namespace slideshow::internal
static UserPaintOverlaySharedPtr create( const RGBColor& rStrokeColor,
double nStrokeWidth,
const SlideShowContext& rContext,
- const PolyPolygonVector& rPolygons,
+ PolyPolygonVector&& rPolygons,
bool bActive);
~UserPaintOverlay();
UserPaintOverlay(const UserPaintOverlay&) = delete;
@@ -69,7 +69,7 @@ namespace slideshow::internal
UserPaintOverlay( const RGBColor& rStrokeColor,
double nStrokeWidth,
const SlideShowContext& rContext,
- const PolyPolygonVector& rPolygons,
+ PolyPolygonVector&& rPolygons,
bool bActive );
::std::shared_ptr<PaintOverlayHandler> mpHandler;