diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-09 09:22:34 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-01-10 06:28:22 +0000 |
commit | b0229855057ed4d73e73ecd8c501a4564f2237ce (patch) | |
tree | 05a3e4eea3ea9584699063ed9b726d466f3a8839 /chart2 | |
parent | bce35b8e13b0d82ba54bf3d380f448dad0ee13bb (diff) |
loplugin:unusedfields
Change-Id: I9611511cb3480734dea3c3cbaf0d659071366ad1
Reviewed-on: https://gerrit.libreoffice.org/32873
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
15 files changed, 19 insertions, 31 deletions
diff --git a/chart2/source/model/template/BubbleChartTypeTemplate.cxx b/chart2/source/model/template/BubbleChartTypeTemplate.cxx index 1d03e50540c8..dfda9beab891 100644 --- a/chart2/source/model/template/BubbleChartTypeTemplate.cxx +++ b/chart2/source/model/template/BubbleChartTypeTemplate.cxx @@ -206,7 +206,7 @@ Reference< chart2::XDataInterpreter > SAL_CALL BubbleChartTypeTemplate::getDataI throw (uno::RuntimeException, std::exception) { if( ! m_xDataInterpreter.is()) - m_xDataInterpreter.set( new BubbleDataInterpreter( GetComponentContext()) ); + m_xDataInterpreter.set( new BubbleDataInterpreter ); return m_xDataInterpreter; } diff --git a/chart2/source/model/template/BubbleDataInterpreter.cxx b/chart2/source/model/template/BubbleDataInterpreter.cxx index ac29630151a8..76b202829e75 100644 --- a/chart2/source/model/template/BubbleDataInterpreter.cxx +++ b/chart2/source/model/template/BubbleDataInterpreter.cxx @@ -36,9 +36,8 @@ using ::com::sun::star::uno::Sequence; namespace chart { -BubbleDataInterpreter::BubbleDataInterpreter( - const uno::Reference< uno::XComponentContext > & xContext ) : - DataInterpreter( xContext ) +BubbleDataInterpreter::BubbleDataInterpreter() : + DataInterpreter() { } diff --git a/chart2/source/model/template/BubbleDataInterpreter.hxx b/chart2/source/model/template/BubbleDataInterpreter.hxx index 4f08d05c7517..59ad9a821cc1 100644 --- a/chart2/source/model/template/BubbleDataInterpreter.hxx +++ b/chart2/source/model/template/BubbleDataInterpreter.hxx @@ -27,8 +27,7 @@ namespace chart class BubbleDataInterpreter : public DataInterpreter { public: - explicit BubbleDataInterpreter( - const css::uno::Reference< css::uno::XComponentContext > & xContext ); + explicit BubbleDataInterpreter(); virtual ~BubbleDataInterpreter() override; protected: diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx index 1b62e7af143d..06915bab71ec 100644 --- a/chart2/source/model/template/ChartTypeTemplate.cxx +++ b/chart2/source/model/template/ChartTypeTemplate.cxx @@ -376,7 +376,7 @@ Reference< chart2::XDataInterpreter > SAL_CALL ChartTypeTemplate::getDataInterpr throw (uno::RuntimeException, std::exception) { if( ! m_xDataInterpreter.is()) - m_xDataInterpreter.set( new DataInterpreter( GetComponentContext() ) ); + m_xDataInterpreter.set( new DataInterpreter ); return m_xDataInterpreter; } diff --git a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx index 100b6287a0cc..4868df4d4754 100644 --- a/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx +++ b/chart2/source/model/template/ColumnLineChartTypeTemplate.cxx @@ -394,7 +394,7 @@ Reference< XDataInterpreter > SAL_CALL ColumnLineChartTypeTemplate::getDataInter { sal_Int32 nNumberOfLines = 1; getFastPropertyValue( PROP_COL_LINE_NUMBER_OF_LINES ) >>= nNumberOfLines; - m_xDataInterpreter.set( new ColumnLineDataInterpreter( nNumberOfLines, GetComponentContext() ) ); + m_xDataInterpreter.set( new ColumnLineDataInterpreter( nNumberOfLines ) ); } else { diff --git a/chart2/source/model/template/ColumnLineDataInterpreter.cxx b/chart2/source/model/template/ColumnLineDataInterpreter.cxx index aba77b13ca36..3f41a7016664 100644 --- a/chart2/source/model/template/ColumnLineDataInterpreter.cxx +++ b/chart2/source/model/template/ColumnLineDataInterpreter.cxx @@ -41,9 +41,8 @@ namespace chart // explicit ColumnLineDataInterpreter::ColumnLineDataInterpreter( - sal_Int32 nNumberOfLines, - const Reference< uno::XComponentContext > & xContext ) : - DataInterpreter( xContext ), + sal_Int32 nNumberOfLines ) : + DataInterpreter(), m_nNumberOfLines( nNumberOfLines ) {} diff --git a/chart2/source/model/template/ColumnLineDataInterpreter.hxx b/chart2/source/model/template/ColumnLineDataInterpreter.hxx index ea7ef0a934cd..5d113be6b029 100644 --- a/chart2/source/model/template/ColumnLineDataInterpreter.hxx +++ b/chart2/source/model/template/ColumnLineDataInterpreter.hxx @@ -28,8 +28,7 @@ class ColumnLineDataInterpreter : public DataInterpreter { public: explicit ColumnLineDataInterpreter( - sal_Int32 nNumberOfLines, - const css::uno::Reference< css::uno::XComponentContext > & xContext ); + sal_Int32 nNumberOfLines ); virtual ~ColumnLineDataInterpreter() override; protected: diff --git a/chart2/source/model/template/DataInterpreter.cxx b/chart2/source/model/template/DataInterpreter.cxx index 6ed15479e8a5..052fe51ae75d 100644 --- a/chart2/source/model/template/DataInterpreter.cxx +++ b/chart2/source/model/template/DataInterpreter.cxx @@ -48,9 +48,7 @@ void lcl_ShowDataSource( const Reference< data::XDataSource > & xSource ); namespace chart { -DataInterpreter::DataInterpreter( - const Reference< uno::XComponentContext > & xContext ) : - m_xContext( xContext ) +DataInterpreter::DataInterpreter() {} DataInterpreter::~DataInterpreter() diff --git a/chart2/source/model/template/DataInterpreter.hxx b/chart2/source/model/template/DataInterpreter.hxx index 0a1900a1c208..15bd9589c3f2 100644 --- a/chart2/source/model/template/DataInterpreter.hxx +++ b/chart2/source/model/template/DataInterpreter.hxx @@ -32,7 +32,7 @@ class DataInterpreter : public ::cppu::WeakImplHelper< css::lang::XServiceInfo > { public: - explicit DataInterpreter( const css::uno::Reference< css::uno::XComponentContext > & xContext ); + explicit DataInterpreter(); virtual ~DataInterpreter() override; /// XServiceInfo declarations @@ -77,9 +77,6 @@ protected: virtual css::uno::Reference< css::chart2::data::XDataSource > SAL_CALL mergeInterpretedData( const css::chart2::InterpretedData& aInterpretedData ) throw (css::uno::RuntimeException, std::exception) override; - - css::uno::Reference< css::uno::XComponentContext > - m_xContext; }; } // namespace chart diff --git a/chart2/source/model/template/ScatterChartTypeTemplate.cxx b/chart2/source/model/template/ScatterChartTypeTemplate.cxx index 44703f6313ac..3f98f72fa2c7 100644 --- a/chart2/source/model/template/ScatterChartTypeTemplate.cxx +++ b/chart2/source/model/template/ScatterChartTypeTemplate.cxx @@ -387,7 +387,7 @@ Reference< chart2::XDataInterpreter > SAL_CALL ScatterChartTypeTemplate::getData throw (uno::RuntimeException, std::exception) { if( ! m_xDataInterpreter.is()) - m_xDataInterpreter.set( new XYDataInterpreter( GetComponentContext()) ); + m_xDataInterpreter.set( new XYDataInterpreter ); return m_xDataInterpreter; } diff --git a/chart2/source/model/template/StockChartTypeTemplate.cxx b/chart2/source/model/template/StockChartTypeTemplate.cxx index 8d580b65f979..aa4d41b48673 100644 --- a/chart2/source/model/template/StockChartTypeTemplate.cxx +++ b/chart2/source/model/template/StockChartTypeTemplate.cxx @@ -508,7 +508,7 @@ Reference< XDataInterpreter > SAL_CALL StockChartTypeTemplate::getDataInterprete throw (uno::RuntimeException, std::exception) { if( ! m_xDataInterpreter.is()) - m_xDataInterpreter.set( new StockDataInterpreter( m_eStockVariant, GetComponentContext() ) ); + m_xDataInterpreter.set( new StockDataInterpreter( m_eStockVariant ) ); return m_xDataInterpreter; } diff --git a/chart2/source/model/template/StockDataInterpreter.cxx b/chart2/source/model/template/StockDataInterpreter.cxx index cbd77c7652b4..2e2f5c0bbbd7 100644 --- a/chart2/source/model/template/StockDataInterpreter.cxx +++ b/chart2/source/model/template/StockDataInterpreter.cxx @@ -41,9 +41,8 @@ namespace chart // explicit StockDataInterpreter::StockDataInterpreter( - StockChartTypeTemplate::StockVariant eVariant, - const Reference< uno::XComponentContext > & xContext ) : - DataInterpreter( xContext ), + StockChartTypeTemplate::StockVariant eVariant ) : + DataInterpreter(), m_eStockVariant( eVariant ) {} diff --git a/chart2/source/model/template/StockDataInterpreter.hxx b/chart2/source/model/template/StockDataInterpreter.hxx index 9e054af878db..0fb4df9acd7f 100644 --- a/chart2/source/model/template/StockDataInterpreter.hxx +++ b/chart2/source/model/template/StockDataInterpreter.hxx @@ -30,8 +30,7 @@ class StockDataInterpreter : public DataInterpreter { public: explicit StockDataInterpreter( - StockChartTypeTemplate::StockVariant eVariant, - const css::uno::Reference< css::uno::XComponentContext > & xContext ); + StockChartTypeTemplate::StockVariant eVariant ); virtual ~StockDataInterpreter() override; protected: diff --git a/chart2/source/model/template/XYDataInterpreter.cxx b/chart2/source/model/template/XYDataInterpreter.cxx index c008a1e67a64..1ecce05b21a2 100644 --- a/chart2/source/model/template/XYDataInterpreter.cxx +++ b/chart2/source/model/template/XYDataInterpreter.cxx @@ -36,9 +36,8 @@ using ::com::sun::star::uno::Sequence; namespace chart { -XYDataInterpreter::XYDataInterpreter( - const uno::Reference< uno::XComponentContext > & xContext ) : - DataInterpreter( xContext ) +XYDataInterpreter::XYDataInterpreter() : + DataInterpreter() { } diff --git a/chart2/source/model/template/XYDataInterpreter.hxx b/chart2/source/model/template/XYDataInterpreter.hxx index cf8017a02a3c..5b730c45e745 100644 --- a/chart2/source/model/template/XYDataInterpreter.hxx +++ b/chart2/source/model/template/XYDataInterpreter.hxx @@ -27,7 +27,7 @@ namespace chart class XYDataInterpreter : public DataInterpreter { public: - explicit XYDataInterpreter( const css::uno::Reference< css::uno::XComponentContext > & xContext ); + explicit XYDataInterpreter(); virtual ~XYDataInterpreter() override; protected: |