diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-28 12:45:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-04-28 13:41:48 +0200 |
commit | da57421b366dfd5bef840f5caeffcd030b19c643 (patch) | |
tree | a9ab7a6ba138c063866af2f2c8a4d7fc990c274f /chart2/source/model/template/ChartTypeTemplate.cxx | |
parent | iOS, fixed build breaker. (diff) | |
download | core-da57421b366dfd5bef840f5caeffcd030b19c643.tar.gz core-da57421b366dfd5bef840f5caeffcd030b19c643.zip |
commit: loplugin:checkunusedparams in chart2
Change-Id: Ia1f42e74365ca1dace93babc132ad67fd09fc99d
Reviewed-on: https://gerrit.libreoffice.org/37064
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/template/ChartTypeTemplate.cxx')
-rw-r--r-- | chart2/source/model/template/ChartTypeTemplate.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index d876ae0c4c56..cc7b5b833145 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -166,7 +166,7 @@ uno::Reference< XDiagram > SAL_CALL ChartTypeTemplate::createDiagramByDataSource } Sequence< Reference< XChartType > > aOldChartTypesSeq; - FillDiagram( xDia, aData.Series, aData.Categories, aOldChartTypesSeq, true ); + FillDiagram( xDia, aData.Series, aData.Categories, aOldChartTypesSeq ); } catch( const uno::Exception & ex ) { @@ -247,7 +247,7 @@ void SAL_CALL ChartTypeTemplate::changeDiagram( const uno::Reference< XDiagram > } } - FillDiagram( xDiagram, aSeriesSeq, aData.Categories, aOldChartTypesSeq, false ); + FillDiagram( xDiagram, aSeriesSeq, aData.Categories, aOldChartTypesSeq ); } catch( const uno::Exception & ex ) { @@ -628,7 +628,7 @@ void ChartTypeTemplate::adaptScales( { Reference< XChartType > xChartType( getChartTypeForNewSeries(Sequence< Reference< XChartType > >() )); - bool bSupportsDates = ::chart::ChartTypeHelper::isSupportingDateAxis( xChartType, 2, nDimensionX ); + bool bSupportsDates = ::chart::ChartTypeHelper::isSupportingDateAxis( xChartType, nDimensionX ); if( aData.AxisType != AxisType::CATEGORY && ( aData.AxisType != AxisType::DATE || !bSupportsDates) ) { aData.AxisType = AxisType::CATEGORY; @@ -765,8 +765,7 @@ void ChartTypeTemplate::FillDiagram( const Reference< XDiagram >& xDiagram, const Sequence< Sequence< Reference< XDataSeries > > >& aSeriesSeq, const Reference< data::XLabeledDataSequence >& xCategories, - const Sequence< Reference< XChartType > >& aOldChartTypesSeq, - bool /* bCreate */ ) + const Sequence< Reference< XChartType > >& aOldChartTypesSeq ) { adaptDiagram( xDiagram ); |