diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 15:48:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-06-02 17:43:27 +0200 |
commit | 859e0acc39c5353bc8ec2bafcf62d030bfb2bacd (patch) | |
tree | 9eb0735529aeb2b4a4576a25c4f10760bad2aeb8 /cppcanvas/source/tools | |
parent | b4163877e722298b42f6e96831bd8ffef7785a20 (diff) |
clang-tidy modernize-pass-by-value in cppcanvas
Change-Id: I01e638c468f0941e042a839f73801a3ae3cb022a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135310
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source/tools')
-rw-r--r-- | cppcanvas/source/tools/canvasgraphichelper.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx index 632294834cce..2bb6d976b76e 100644 --- a/cppcanvas/source/tools/canvasgraphichelper.cxx +++ b/cppcanvas/source/tools/canvasgraphichelper.cxx @@ -25,6 +25,7 @@ #include <canvas/canvastools.hxx> #include <basegfx/utils/canvastools.hxx> #include <basegfx/matrix/b2dhommatrix.hxx> +#include <utility> using namespace ::com::sun::star; @@ -33,8 +34,8 @@ using namespace ::com::sun::star; namespace cppcanvas::internal { - CanvasGraphicHelper::CanvasGraphicHelper( const CanvasSharedPtr& rParentCanvas ) : - mpCanvas( rParentCanvas ) + CanvasGraphicHelper::CanvasGraphicHelper( CanvasSharedPtr xParentCanvas ) : + mpCanvas(std::move( xParentCanvas )) { OSL_ENSURE( mpCanvas && mpCanvas->getUNOCanvas().is(), "CanvasGraphicHelper::CanvasGraphicHelper: no valid canvas" ); |