From e69da79dc00db42411354d36c28e30f840191acf Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 18 Jul 2018 15:03:30 +0200 Subject: loplugin:constantparam Change-Id: I8e2e9009f0a70d2fa390e03688a988ac935d5f36 Reviewed-on: https://gerrit.libreoffice.org/57643 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svx/source/svdraw/charthelper.cxx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'svx') diff --git a/svx/source/svdraw/charthelper.cxx b/svx/source/svdraw/charthelper.cxx index a9c18eb4f2ae..617351817f1b 100644 --- a/svx/source/svdraw/charthelper.cxx +++ b/svx/source/svdraw/charthelper.cxx @@ -36,7 +36,7 @@ using namespace ::com::sun::star; -void ChartHelper::updateChart( const uno::Reference< ::frame::XModel >& rXModel, bool bHardUpdate ) +void ChartHelper::updateChart( const uno::Reference< ::frame::XModel >& rXModel ) { if (!rXModel.is()) return; @@ -47,10 +47,7 @@ void ChartHelper::updateChart( const uno::Reference< ::frame::XModel >& rXModel, const uno::Reference< lang::XUnoTunnel > xChartView(xChartFact->createInstance("com.sun.star.chart2.ChartView"), uno::UNO_QUERY_THROW); const uno::Reference xUpdatable(xChartView, uno::UNO_QUERY_THROW); - if (bHardUpdate) - xUpdatable->updateHard(); - else - xUpdatable->updateSoft(); + xUpdatable->updateHard(); } catch(uno::Exception&) { @@ -67,7 +64,7 @@ drawinglayer::primitive2d::Primitive2DContainer ChartHelper::tryToGetChartConten if (!rXModel.is()) return aRetval; - updateChart(rXModel, true); + updateChart(rXModel); try { -- cgit