summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 13:00:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-04-20 15:24:34 +0200
commit9f958c076a86e80a48fcd7bbca65a834568e94ea (patch)
treecfa0b4f55a6b6717e5a359357fd20779e9d98b00 /chart2/source/model
parenta40558be785756929f606ab0798a026b985e0ffb (diff)
loplugin:passstuffbyref
Change-Id: I336fd329b577b6fa141265d8bc7ce67784bd7306 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133210 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/main/BaseCoordinateSystem.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx
index 52ef7ffde0d7..95faaed01bfd 100644
--- a/chart2/source/model/main/BaseCoordinateSystem.cxx
+++ b/chart2/source/model/main/BaseCoordinateSystem.cxx
@@ -256,7 +256,7 @@ Reference< chart2::XAxis > SAL_CALL BaseCoordinateSystem::getAxisByDimension(
return m_aAllAxis[ nDimensionIndex ][nAxisIndex];
}
-rtl::Reference< Axis > BaseCoordinateSystem::getAxisByDimension2(
+const rtl::Reference< Axis > & BaseCoordinateSystem::getAxisByDimension2(
sal_Int32 nDimensionIndex, sal_Int32 nAxisIndex ) const
{
if( nDimensionIndex < 0 || nDimensionIndex >= m_nDimensionCount )