summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/opengl
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/opengl
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/opengl')
-rw-r--r--slideshow/source/engine/opengl/TransitionerImpl.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/slideshow/source/engine/opengl/TransitionerImpl.cxx b/slideshow/source/engine/opengl/TransitionerImpl.cxx
index faef77988442..8eb02b528792 100644
--- a/slideshow/source/engine/opengl/TransitionerImpl.cxx
+++ b/slideshow/source/engine/opengl/TransitionerImpl.cxx
@@ -58,6 +58,7 @@
#include <tools/diagnose_ex.h>
+#include <utility>
#include <vcl/canvastools.hxx>
#include <vcl/opengl/OpenGLContext.hxx>
#include <vcl/opengl/OpenGLHelper.hxx>
@@ -87,8 +88,8 @@ typedef cppu::WeakComponentImplHelper<presentation::XTransition> OGLTransitioner
class TimerContext
{
public:
- explicit TimerContext(OUString const& rWhat)
- : m_aWhat(rWhat)
+ explicit TimerContext(OUString aWhat)
+ : m_aWhat(std::move(aWhat))
, m_StartTime(std::chrono::steady_clock::now())
{
}