summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/slide/slideimpl.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 12:08:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-03 14:42:43 +0200
commit41aad592685b0b36c2e5f1033e7263aef406c28b (patch)
treedbc83f9a33f1d714327dc2da5e8d9ecdaaddf87a /slideshow/source/engine/slide/slideimpl.cxx
parent4afb80eaa0df58b78e2bfad892f9e7ce5e1bce7a (diff)
clang-tidy modernize-pass-by-value in slideshow
Change-Id: I89a56aa3d267f22665769ba073a47d1208d8b55d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137745 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/engine/slide/slideimpl.cxx')
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index 033af87565c4..7c7fb75630ec 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -48,6 +48,7 @@
#include "targetpropertiescreator.hxx"
#include <tools.hxx>
#include <box2dtools.hxx>
+#include <utility>
#include <vcl/graphicfilter.hxx>
#include <svx/svdograf.hxx>
@@ -66,8 +67,8 @@ class SlideImpl : public Slide,
{
public:
SlideImpl( const uno::Reference<drawing::XDrawPage>& xDrawPage,
- const uno::Reference<drawing::XDrawPagesSupplier>& xDrawPages,
- const uno::Reference<animations::XAnimationNode>& xRootNode,
+ uno::Reference<drawing::XDrawPagesSupplier> xDrawPages,
+ uno::Reference<animations::XAnimationNode> xRootNode,
EventQueue& rEventQueue,
EventMultiplexer& rEventMultiplexer,
ScreenUpdater& rScreenUpdater,
@@ -287,8 +288,8 @@ void slideRenderer( SlideImpl const * pSlide, const UnoViewSharedPtr& rView )
SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDrawPage,
- const uno::Reference<drawing::XDrawPagesSupplier>& xDrawPages,
- const uno::Reference< animations::XAnimationNode >& xRootNode,
+ uno::Reference<drawing::XDrawPagesSupplier> xDrawPages,
+ uno::Reference< animations::XAnimationNode > xRootNode,
EventQueue& rEventQueue,
EventMultiplexer& rEventMultiplexer,
ScreenUpdater& rScreenUpdater,
@@ -307,8 +308,8 @@ SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDra
bool bIntrinsicAnimationsAllowed,
bool bDisableAnimationZOrder ) :
mxDrawPage( xDrawPage ),
- mxDrawPagesSupplier( xDrawPages ),
- mxRootNode( xRootNode ),
+ mxDrawPagesSupplier(std::move( xDrawPages )),
+ mxRootNode(std::move( xRootNode )),
mpLayerManager( std::make_shared<LayerManager>(
rViewContainer,
bDisableAnimationZOrder) ),