summaryrefslogtreecommitdiff
path: root/chart2/source/tools/RegressionCurveHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-07-27 12:04:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-07-27 13:23:25 +0200
commit620d032b1807477ef1e2b547ce772c284aa0da50 (patch)
tree92abc1d89840f27dae0dfb27269688fba197ae3b /chart2/source/tools/RegressionCurveHelper.cxx
parent370c71f5b1e2618c49881ac221993692143d4e58 (diff)
loplugin:constparams in chart2
Change-Id: Ic325b79f04e04aa19e08a60db30b982d90f04c80 Reviewed-on: https://gerrit.libreoffice.org/40480 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/tools/RegressionCurveHelper.cxx')
-rw-r--r--chart2/source/tools/RegressionCurveHelper.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/chart2/source/tools/RegressionCurveHelper.cxx b/chart2/source/tools/RegressionCurveHelper.cxx
index 4a3558d6a38e..5fa4a34076e7 100644
--- a/chart2/source/tools/RegressionCurveHelper.cxx
+++ b/chart2/source/tools/RegressionCurveHelper.cxx
@@ -293,7 +293,7 @@ uno::Reference< chart2::XRegressionCurve >
}
void RegressionCurveHelper::addMeanValueLine(
- uno::Reference< XRegressionCurveContainer > & xRegCnt,
+ uno::Reference< XRegressionCurveContainer > const & xRegCnt,
const uno::Reference< XPropertySet > & xSeriesProp )
{
if( !xRegCnt.is() ||
@@ -316,7 +316,7 @@ void RegressionCurveHelper::addMeanValueLine(
}
void RegressionCurveHelper::removeMeanValueLine(
- Reference< XRegressionCurveContainer > & xRegCnt )
+ Reference< XRegressionCurveContainer > const & xRegCnt )
{
if( !xRegCnt.is())
return;
@@ -346,7 +346,7 @@ void RegressionCurveHelper::removeMeanValueLine(
uno::Reference< chart2::XRegressionCurve > RegressionCurveHelper::addRegressionCurve(
SvxChartRegress eType,
- uno::Reference< XRegressionCurveContainer >& xRegressionCurveContainer,
+ uno::Reference< XRegressionCurveContainer > const & xRegressionCurveContainer,
const uno::Reference< XComponentContext >& /* xContext */,
const uno::Reference< beans::XPropertySet >& xPropertySource,
const uno::Reference< beans::XPropertySet >& xEquationProperties )
@@ -396,7 +396,7 @@ uno::Reference< chart2::XRegressionCurve > RegressionCurveHelper::addRegressionC
and returns true, if anything was removed
*/
bool RegressionCurveHelper::removeAllExceptMeanValueLine(
- uno::Reference< chart2::XRegressionCurveContainer > & xRegCnt )
+ uno::Reference< chart2::XRegressionCurveContainer > const & xRegCnt )
{
bool bRemovedSomething = false;
if( xRegCnt.is())
@@ -430,7 +430,7 @@ bool RegressionCurveHelper::removeAllExceptMeanValueLine(
}
void RegressionCurveHelper::removeEquations(
- uno::Reference< chart2::XRegressionCurveContainer > & xRegCnt )
+ uno::Reference< chart2::XRegressionCurveContainer > const & xRegCnt )
{
if( xRegCnt.is())
{
@@ -466,8 +466,8 @@ void RegressionCurveHelper::removeEquations(
uno::Reference< XRegressionCurve > RegressionCurveHelper::changeRegressionCurveType(
SvxChartRegress eType,
- uno::Reference< XRegressionCurveContainer > & xRegressionCurveContainer,
- uno::Reference< XRegressionCurve > & xRegressionCurve,
+ uno::Reference< XRegressionCurveContainer > const & xRegressionCurveContainer,
+ uno::Reference< XRegressionCurve > const & xRegressionCurve,
const uno::Reference< XComponentContext > & xContext )
{
xRegressionCurveContainer->removeRegressionCurve( xRegressionCurve );