summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/cellsuno.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-08-05 11:21:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-08-07 13:32:30 +0200
commit5b112c8f8843613873181fce50990a8feef837ca (patch)
tree9ebd9d01d49a0c6a058de954dc167fd4ccb4ff5c /sc/source/ui/unoobj/cellsuno.cxx
parent799753cb80f4c81a6e87bf016924e0f2a29f03f0 (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/unoobj/cellsuno.cxx')
-rw-r--r--sc/source/ui/unoobj/cellsuno.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/sc/source/ui/unoobj/cellsuno.cxx b/sc/source/ui/unoobj/cellsuno.cxx
index e522daee55a7..cbc68848f5b1 100644
--- a/sc/source/ui/unoobj/cellsuno.cxx
+++ b/sc/source/ui/unoobj/cellsuno.cxx
@@ -22,6 +22,7 @@
#include <o3tl/safeint.hxx>
#include <svx/svdpool.hxx>
+#include <utility>
#include <vcl/svapp.hxx>
#include <svx/algitem.hxx>
#include <editeng/borderline.hxx>
@@ -1393,10 +1394,10 @@ ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, const ScRange& rR) :
}
}
-ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, const ScRangeList& rR) :
+ScCellRangesBase::ScCellRangesBase(ScDocShell* pDocSh, ScRangeList aR) :
pPropSet(lcl_GetCellsPropertySet()),
pDocShell( pDocSh ),
- aRanges( rR ),
+ aRanges(std::move( aR )),
nObjectId( 0 ),
bChartColAsHdr( false ),
bChartRowAsHdr( false ),
@@ -8594,9 +8595,9 @@ const SfxItemPropertyMap& ScTableRowObj::GetItemPropertyMap()
return pRowPropSet->getPropertyMap();
}
-ScCellsObj::ScCellsObj(ScDocShell* pDocSh, const ScRangeList& rR) :
+ScCellsObj::ScCellsObj(ScDocShell* pDocSh, ScRangeList aR) :
pDocShell( pDocSh ),
- aRanges( rR )
+ aRanges(std::move( aR ))
{
pDocShell->GetDocument().AddUnoObject(*this);
}
@@ -8651,9 +8652,9 @@ sal_Bool SAL_CALL ScCellsObj::hasElements()
return bHas;
}
-ScCellsEnumeration::ScCellsEnumeration(ScDocShell* pDocSh, const ScRangeList& rR) :
+ScCellsEnumeration::ScCellsEnumeration(ScDocShell* pDocSh, ScRangeList aR) :
pDocShell( pDocSh ),
- aRanges( rR ),
+ aRanges(std::move( aR )),
bAtEnd( false )
{
ScDocument& rDoc = pDocShell->GetDocument();