summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/waitsymbol.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/waitsymbol.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/waitsymbol.cxx')
-rw-r--r--slideshow/source/engine/waitsymbol.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/slideshow/source/engine/waitsymbol.cxx b/slideshow/source/engine/waitsymbol.cxx
index 83f1858e9294..ff54766aeb35 100644
--- a/slideshow/source/engine/waitsymbol.cxx
+++ b/slideshow/source/engine/waitsymbol.cxx
@@ -33,6 +33,7 @@
#include <eventmultiplexer.hxx>
#include <algorithm>
+#include <utility>
using namespace com::sun::star;
@@ -57,10 +58,10 @@ WaitSymbolSharedPtr WaitSymbol::create( const uno::Reference<rendering::XBitmap>
return pRet;
}
-WaitSymbol::WaitSymbol( uno::Reference<rendering::XBitmap> const & xBitmap,
+WaitSymbol::WaitSymbol( uno::Reference<rendering::XBitmap> xBitmap,
ScreenUpdater& rScreenUpdater,
const UnoViewContainer& rViewContainer ) :
- mxBitmap(xBitmap),
+ mxBitmap(std::move(xBitmap)),
maViews(),
mrScreenUpdater( rScreenUpdater ),
mbVisible(false)