diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-21 17:59:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-21 21:55:31 +0200 |
commit | 08f757c32fc260c8857c1ff5cd44baf9aa8b8d03 (patch) | |
tree | 64324a10e445ea83252ff8ac64cb58476fb6a2cc /canvas/source/cairo/cairo_canvasbitmap.cxx | |
parent | 098df8583bc8d4a8d0210525f05f69b460386a46 (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/cairo/cairo_canvasbitmap.cxx')
-rw-r--r-- | canvas/source/cairo/cairo_canvasbitmap.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/canvas/source/cairo/cairo_canvasbitmap.cxx b/canvas/source/cairo/cairo_canvasbitmap.cxx index 430bb3b5fc60..fa33b83eb865 100644 --- a/canvas/source/cairo/cairo_canvasbitmap.cxx +++ b/canvas/source/cairo/cairo_canvasbitmap.cxx @@ -22,6 +22,7 @@ #include <cppuhelper/supportsservice.hxx> #include <tools/diagnose_ex.h> +#include <utility> #include <vcl/bitmapex.hxx> #include <vcl/BitmapTools.hxx> @@ -35,10 +36,10 @@ using namespace ::com::sun::star; namespace cairocanvas { CanvasBitmap::CanvasBitmap( const ::basegfx::B2ISize& rSize, - const SurfaceProviderRef& rSurfaceProvider, + SurfaceProviderRef rSurfaceProvider, rendering::XGraphicDevice* pDevice, bool bHasAlpha ) : - mpSurfaceProvider( rSurfaceProvider ), + mpSurfaceProvider(std::move( rSurfaceProvider )), maSize(rSize), mbHasAlpha(bHasAlpha) { |