summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-18 15:03:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-19 08:09:41 +0200
commite69da79dc00db42411354d36c28e30f840191acf (patch)
tree82aca7c2da20157ad3cb2f104a3297457ccd291f /svx
parent1e9bde7825a5b63c0f1502bd3ebf5173bdf57111 (diff)
loplugin:constantparam
Change-Id: I8e2e9009f0a70d2fa390e03688a988ac935d5f36 Reviewed-on: https://gerrit.libreoffice.org/57643 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/charthelper.cxx9
1 files changed, 3 insertions, 6 deletions
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<util::XUpdatable2> 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
{