summaryrefslogtreecommitdiff
path: root/canvas/source/tools/surface.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/tools/surface.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/tools/surface.cxx')
-rw-r--r--canvas/source/tools/surface.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/canvas/source/tools/surface.cxx b/canvas/source/tools/surface.cxx
index 9769931a636e..9dfb0f7c9d36 100644
--- a/canvas/source/tools/surface.cxx
+++ b/canvas/source/tools/surface.cxx
@@ -22,17 +22,18 @@
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <basegfx/polygon/b2dpolygonclipper.hxx>
#include <comphelper/scopeguard.hxx>
+#include <utility>
#include "surface.hxx"
namespace canvas
{
- Surface::Surface( const PageManagerSharedPtr& rPageManager,
- const std::shared_ptr<IColorBuffer>& rColorBuffer,
+ Surface::Surface( PageManagerSharedPtr rPageManager,
+ std::shared_ptr<IColorBuffer> xColorBuffer,
const ::basegfx::B2IPoint& rPos,
const ::basegfx::B2ISize& rSize ) :
- mpColorBuffer(rColorBuffer),
- mpPageManager(rPageManager),
+ mpColorBuffer(std::move(xColorBuffer)),
+ mpPageManager(std::move(rPageManager)),
maSourceOffset(rPos),
maSize(rSize),
mbIsDirty(true)