summaryrefslogtreecommitdiff
path: root/xmloff/source/chart/SchXMLChartContext.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 10:45:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-12 15:59:38 +0200
commitca2a4a4b1c839c14832043e714297c30087b4b6d (patch)
tree8229dee461d27537ddb828e6693c27d7a2439c5e /xmloff/source/chart/SchXMLChartContext.cxx
parent2f93eb49db71c8cbaffbd022cb2b654d56920bda (diff)
clang-tidy modernize-pass-by-value in xmloff
Change-Id: Ica07e393763343d0f5caaad6a89fa3378f6ad344 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136995 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/chart/SchXMLChartContext.cxx')
-rw-r--r--xmloff/source/chart/SchXMLChartContext.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/xmloff/source/chart/SchXMLChartContext.cxx b/xmloff/source/chart/SchXMLChartContext.cxx
index 23ea2f780041..7d1a767e784f 100644
--- a/xmloff/source/chart/SchXMLChartContext.cxx
+++ b/xmloff/source/chart/SchXMLChartContext.cxx
@@ -29,6 +29,7 @@
#include <sal/log.hxx>
#include <tools/diagnose_ex.h>
#include <unotools/mediadescriptor.hxx>
+#include <utility>
#include <xmloff/xmlnamespace.hxx>
#include <xmloff/xmltoken.hxx>
#include <xmloff/namespacemap.hxx>
@@ -448,8 +449,8 @@ struct NewDonutSeries
::std::vector< OUString > m_aSeriesStyles;
::std::vector< OUString > m_aPointStyles;
- NewDonutSeries( const css::uno::Reference< css::chart2::XDataSeries >& xSeries, sal_Int32 nPointCount )
- : m_xSeries( xSeries )
+ NewDonutSeries( css::uno::Reference< css::chart2::XDataSeries > xSeries, sal_Int32 nPointCount )
+ : m_xSeries(std::move( xSeries ))
, mnAttachedAxis( 1 )
{
m_aPointStyles.resize(nPointCount);
@@ -1159,11 +1160,11 @@ void SchXMLChartContext::InitChart(
SchXMLTitleContext::SchXMLTitleContext( SchXMLImportHelper& rImpHelper, SvXMLImport& rImport,
OUString& rTitle,
- uno::Reference< drawing::XShape > const & xTitleShape ) :
+ uno::Reference< drawing::XShape > xTitleShape ) :
SvXMLImportContext( rImport ),
mrImportHelper( rImpHelper ),
mrTitle( rTitle ),
- mxTitleShape( xTitleShape )
+ mxTitleShape(std::move( xTitleShape ))
{
}