From 859e0acc39c5353bc8ec2bafcf62d030bfb2bacd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 2 Jun 2022 15:48:18 +0200 Subject: 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 --- cppcanvas/source/tools/canvasgraphichelper.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cppcanvas/source/tools') 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 #include #include +#include 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" ); -- cgit