From 08f757c32fc260c8857c1ff5cd44baf9aa8b8d03 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 21 May 2022 17:59:07 +0200 Subject: clang-tidy modernize-pass-by-value in canvas Change-Id: Ib6e1b6182d83b09dbf5e2aeb9cf3e4ca11d9f48b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134712 Tested-by: Jenkins Reviewed-by: Noel Grandin --- canvas/source/opengl/ogl_canvasbitmap.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'canvas/source/opengl/ogl_canvasbitmap.cxx') diff --git a/canvas/source/opengl/ogl_canvasbitmap.cxx b/canvas/source/opengl/ogl_canvasbitmap.cxx index 2a476ec91e58..fa5e53823d8d 100644 --- a/canvas/source/opengl/ogl_canvasbitmap.cxx +++ b/canvas/source/opengl/ogl_canvasbitmap.cxx @@ -11,6 +11,8 @@ #include +#include + #include "ogl_canvasbitmap.hxx" @@ -19,9 +21,9 @@ using namespace ::com::sun::star; namespace oglcanvas { CanvasBitmap::CanvasBitmap( const geometry::IntegerSize2D& rSize, - const SpriteCanvasRef& rDevice, + SpriteCanvasRef rDevice, SpriteDeviceHelper& rDeviceHelper ) : - mpDevice( rDevice ) + mpDevice(std::move( rDevice )) { ENSURE_OR_THROW( mpDevice.is(), "CanvasBitmap::CanvasBitmap(): Invalid surface or device" ); -- cgit