From 2ac309188820036b1b99f983e8b793445e9b2ab2 Mon Sep 17 00:00:00 2001 From: Noel Date: Tue, 6 Oct 2020 13:09:02 +0200 Subject: loplugin:const* make some params and methods const Change-Id: Idec482c21c270912f9bcaeb980077c1616f67c8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104022 Tested-by: Jenkins Reviewed-by: Noel Grandin --- chart2/source/controller/sidebar/ChartAreaPanel.cxx | 2 +- chart2/source/controller/sidebar/ChartLinePanel.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chart2/source/controller/sidebar') diff --git a/chart2/source/controller/sidebar/ChartAreaPanel.cxx b/chart2/source/controller/sidebar/ChartAreaPanel.cxx index c5db392cf34f..e9b22500b6fa 100644 --- a/chart2/source/controller/sidebar/ChartAreaPanel.cxx +++ b/chart2/source/controller/sidebar/ChartAreaPanel.cxx @@ -30,7 +30,7 @@ namespace chart::sidebar { namespace { -SvxColorToolBoxControl* getColorToolBoxControl(ToolbarUnoDispatcher& rColorDispatch) +SvxColorToolBoxControl* getColorToolBoxControl(const ToolbarUnoDispatcher& rColorDispatch) { css::uno::Reference xController = rColorDispatch.GetControllerForCommand(".uno:FillColor"); SvxColorToolBoxControl* pToolBoxColorControl = dynamic_cast(xController.get()); diff --git a/chart2/source/controller/sidebar/ChartLinePanel.cxx b/chart2/source/controller/sidebar/ChartLinePanel.cxx index 8c4ef5e39ca9..cb0b04d07741 100644 --- a/chart2/source/controller/sidebar/ChartLinePanel.cxx +++ b/chart2/source/controller/sidebar/ChartLinePanel.cxx @@ -32,14 +32,14 @@ namespace chart::sidebar { namespace { -SvxLineStyleToolBoxControl* getLineStyleToolBoxControl(ToolbarUnoDispatcher& rToolBoxColor) +SvxLineStyleToolBoxControl* getLineStyleToolBoxControl(const ToolbarUnoDispatcher& rToolBoxColor) { css::uno::Reference xController = rToolBoxColor.GetControllerForCommand(".uno:XLineStyle"); SvxLineStyleToolBoxControl* pToolBoxLineStyleControl = dynamic_cast(xController.get()); return pToolBoxLineStyleControl; } -SvxColorToolBoxControl* getColorToolBoxControl(ToolbarUnoDispatcher& rToolBoxLineStyle) +SvxColorToolBoxControl* getColorToolBoxControl(const ToolbarUnoDispatcher& rToolBoxLineStyle) { css::uno::Reference xController = rToolBoxLineStyle.GetControllerForCommand(".uno:XLineColor"); SvxColorToolBoxControl* pToolBoxColorControl = dynamic_cast(xController.get()); -- cgit v1.2.3