From c83166ce7126b3c3c6aca8f6d2ab9cd9e16f5763 Mon Sep 17 00:00:00 2001 From: Noel Date: Mon, 25 Jan 2021 20:31:22 +0200 Subject: loplugin:passstuffbyref Change-Id: I330e0ab6c9955939dad313f9d472f93e39dbd313 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109924 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/inc/CommandDispatchContainer.hxx | 2 +- chart2/source/view/axes/Tickmarks.cxx | 2 +- chart2/source/view/axes/Tickmarks.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chart2') diff --git a/chart2/source/controller/inc/CommandDispatchContainer.hxx b/chart2/source/controller/inc/CommandDispatchContainer.hxx index b23fc28f7199..523b798c7893 100644 --- a/chart2/source/controller/inc/CommandDispatchContainer.hxx +++ b/chart2/source/controller/inc/CommandDispatchContainer.hxx @@ -102,7 +102,7 @@ public: const css::uno::Reference< css::frame::XController > & xChartController, const css::util::URL & rURL ); - css::uno::Reference< css::frame::XDispatch > getChartDispatcher() const { return m_xChartDispatcher; } + const css::uno::Reference< css::frame::XDispatch > & getChartDispatcher() const { return m_xChartDispatcher; } void setDrawCommandDispatch( DrawCommandDispatch* pDispatch ); DrawCommandDispatch* getDrawCommandDispatch() { return m_pDrawCommandDispatch; } diff --git a/chart2/source/view/axes/Tickmarks.cxx b/chart2/source/view/axes/Tickmarks.cxx index 8332f01ff9a2..73c8e041cf40 100644 --- a/chart2/source/view/axes/Tickmarks.cxx +++ b/chart2/source/view/axes/Tickmarks.cxx @@ -203,7 +203,7 @@ sal_Int32 TickFactory2D::getTickScreenDistance( TickIter& rIter ) return pFirstTickInfo->getScreenDistanceBetweenTicks( *pSecondTickInfo ); } -B2DVector TickFactory2D::getXaxisStartPos() const +const B2DVector & TickFactory2D::getXaxisStartPos() const { return m_aAxisStartScreenPosition2D; } diff --git a/chart2/source/view/axes/Tickmarks.hxx b/chart2/source/view/axes/Tickmarks.hxx index 039b6a75ff9a..77b9a2b85bdc 100644 --- a/chart2/source/view/axes/Tickmarks.hxx +++ b/chart2/source/view/axes/Tickmarks.hxx @@ -134,7 +134,7 @@ public: bool isHorizontalAxis() const; bool isVerticalAxis() const; - ::basegfx::B2DVector getXaxisStartPos() const; + const ::basegfx::B2DVector & getXaxisStartPos() const; private: ::basegfx::B2DVector getTickScreenPosition2D( double fScaledLogicTickValue ) const; -- cgit -23.05'>distro/collabora/co-23.05 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff