summaryrefslogtreecommitdiff
path: root/canvas/source/opengl/ogl_canvasbitmap.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-05-21 17:59:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-21 21:55:31 +0200
commit08f757c32fc260c8857c1ff5cd44baf9aa8b8d03 (patch)
tree64324a10e445ea83252ff8ac64cb58476fb6a2cc /canvas/source/opengl/ogl_canvasbitmap.cxx
parent098df8583bc8d4a8d0210525f05f69b460386a46 (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source/opengl/ogl_canvasbitmap.cxx')
-rw-r--r--canvas/source/opengl/ogl_canvasbitmap.cxx6
1 files changed, 4 insertions, 2 deletions
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 <tools/diagnose_ex.h>
+#include <utility>
+
#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" );