diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-05 11:21:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-08-07 13:32:30 +0200 |
commit | 5b112c8f8843613873181fce50990a8feef837ca (patch) | |
tree | 9ebd9d01d49a0c6a058de954dc167fd4ccb4ff5c /sc/source/ui/app/transobj.cxx | |
parent | 799753cb80f4c81a6e87bf016924e0f2a29f03f0 (diff) |
clang-tidy modernize-pass-by-value in sc
Change-Id: Ia7ff651d1cbc119b36a9f8052594d03650988f59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137848
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/ui/app/transobj.cxx')
-rw-r--r-- | sc/source/ui/app/transobj.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/app/transobj.cxx b/sc/source/ui/app/transobj.cxx index 3eb6f4f143e6..670ad23976d6 100644 --- a/sc/source/ui/app/transobj.cxx +++ b/sc/source/ui/app/transobj.cxx @@ -32,6 +32,7 @@ #include <comphelper/storagehelper.hxx> #include <comphelper/servicehelper.hxx> #include <sot/storage.hxx> +#include <utility> #include <vcl/gdimtf.hxx> #include <vcl/jobset.hxx> #include <vcl/svapp.hxx> @@ -109,10 +110,10 @@ void ScTransferObj::PaintToDev( OutputDevice* pDev, ScDocument& rDoc, double nPr ScPrintFunc::DrawToDev( rDoc, pDev, nPrintFactor, aBound, &aViewData, false/*bMetaFile*/ ); } -ScTransferObj::ScTransferObj( const std::shared_ptr<ScDocument>& pClipDoc, const TransferableObjectDescriptor& rDesc ) : +ScTransferObj::ScTransferObj( const std::shared_ptr<ScDocument>& pClipDoc, TransferableObjectDescriptor aDesc ) : m_pDoc( pClipDoc ), m_nNonFiltered(0), - m_aObjDesc( rDesc ), + m_aObjDesc(std::move( aDesc )), m_nDragHandleX( 0 ), m_nDragHandleY( 0 ), m_nSourceCursorX( m_pDoc->MaxCol() + 1 ), |