summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes/VAxisBase.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-13 13:13:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-13 16:04:27 +0200
commitb7c260aee331474d993bf96a72bf31f5af350ef3 (patch)
treedd054c07c69e2f711ecea8ebea3e7c78db34917d /chart2/source/view/axes/VAxisBase.cxx
parent24d15ba86c00178238f3f8ef6c548a0d19338aa4 (diff)
clang-tidy modernize-pass-by-value in chart2
Change-Id: I73ae444487571fb61a02a2c813c060d269d52a02 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135723 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/view/axes/VAxisBase.cxx')
-rw-r--r--chart2/source/view/axes/VAxisBase.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/view/axes/VAxisBase.cxx b/chart2/source/view/axes/VAxisBase.cxx
index ace362a9b964..f99b88236019 100644
--- a/chart2/source/view/axes/VAxisBase.cxx
+++ b/chart2/source/view/axes/VAxisBase.cxx
@@ -28,6 +28,7 @@
#include <osl/diagnose.h>
#include <memory>
+#include <utility>
namespace chart
{
@@ -36,11 +37,11 @@ using namespace ::com::sun::star::chart2;
using ::com::sun::star::uno::Reference;
VAxisBase::VAxisBase( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount
- , const AxisProperties& rAxisProperties
- , const uno::Reference< util::XNumberFormatsSupplier >& xNumberFormatsSupplier )
+ , AxisProperties aAxisProperties
+ , uno::Reference< util::XNumberFormatsSupplier > xNumberFormatsSupplier )
: VAxisOrGridBase( nDimensionIndex, nDimensionCount )
- , m_xNumberFormatsSupplier( xNumberFormatsSupplier )
- , m_aAxisProperties( rAxisProperties )
+ , m_xNumberFormatsSupplier(std::move( xNumberFormatsSupplier ))
+ , m_aAxisProperties(std::move( aAxisProperties ))
, m_bUseTextLabels( false )
, m_bReCreateAllTickInfos( true )
, m_bRecordMaximumTextSize(false)