diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-23 16:41:52 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-12-24 07:28:28 +0000 |
commit | e3a31fcca771432a38e4c2e7cc4c4c6c1c157ee9 (patch) | |
tree | 0de9af64a417624e779a6080825d50f55e448119 /chart2/source | |
parent | 4dfba3b59021f55957fc486531f8fdc67cc307b0 (diff) |
loplugin:unusedfields
Change-Id: I979592adb978c3757a1e54615021ee424a2e02bf
Reviewed-on: https://gerrit.libreoffice.org/20892
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'chart2/source')
4 files changed, 4 insertions, 10 deletions
diff --git a/chart2/source/controller/dialogs/dlg_ChartType.cxx b/chart2/source/controller/dialogs/dlg_ChartType.cxx index 4549b3413f40..4a0470fa86ba 100644 --- a/chart2/source/controller/dialogs/dlg_ChartType.cxx +++ b/chart2/source/controller/dialogs/dlg_ChartType.cxx @@ -34,13 +34,11 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::chart2; ChartTypeDialog::ChartTypeDialog( vcl::Window* pParent - , const uno::Reference< frame::XModel >& xChartModel - , const uno::Reference< uno::XComponentContext >& xContext ) + , const uno::Reference< frame::XModel >& xChartModel ) : ModalDialog( pParent, "ChartTypeDialog", "modules/schart/ui/charttypedialog.ui") , m_pChartTypeTabPage(nullptr) , m_xChartModel(xChartModel) - , m_xCC( xContext ) { m_pChartTypeTabPage = VclPtr<ChartTypeTabPage>::Create( get_content_area(), diff --git a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx index d6dec7ef7316..9646339e45ae 100644 --- a/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx +++ b/chart2/source/controller/dialogs/dlg_ChartType_UNO.cxx @@ -80,7 +80,7 @@ void ChartTypeUnoDlg::implInitialize(const uno::Any& _rValue) } VclPtr<Dialog> ChartTypeUnoDlg::createDialog(vcl::Window* _pParent) { - return VclPtr<ChartTypeDialog>::Create( _pParent, m_xChartModel, m_aContext ); + return VclPtr<ChartTypeDialog>::Create( _pParent, m_xChartModel ); } uno::Reference<beans::XPropertySetInfo> SAL_CALL ChartTypeUnoDlg::getPropertySetInfo() throw(uno::RuntimeException, std::exception) { diff --git a/chart2/source/controller/inc/dlg_ChartType.hxx b/chart2/source/controller/inc/dlg_ChartType.hxx index b07f9251d4af..965e42c2e323 100644 --- a/chart2/source/controller/inc/dlg_ChartType.hxx +++ b/chart2/source/controller/inc/dlg_ChartType.hxx @@ -34,9 +34,7 @@ class ChartTypeDialog : public ModalDialog public: ChartTypeDialog( vcl::Window* pWindow , const ::com::sun::star::uno::Reference< - ::com::sun::star::frame::XModel >& xChartModel - , const ::com::sun::star::uno::Reference< - ::com::sun::star::uno::XComponentContext >& xContext ); + ::com::sun::star::frame::XModel >& xChartModel ); virtual ~ChartTypeDialog(); virtual void dispose() override; @@ -45,8 +43,6 @@ private: ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > m_xChartModel; - ::com::sun::star::uno::Reference< - ::com::sun::star::uno::XComponentContext> m_xCC; }; } //namespace chart diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index b78194326246..020541d667e4 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -1380,7 +1380,7 @@ void ChartController::executeDispatch_ChartType() SolarMutexGuard aSolarGuard; //prepare and open dialog - ScopedVclPtrInstance< ChartTypeDialog > aDlg( m_pChartWindow, getModel(), m_xCC ); + ScopedVclPtrInstance< ChartTypeDialog > aDlg( m_pChartWindow, getModel() ); if( aDlg->Execute() == RET_OK ) { impl_adaptDataSeriesAutoResize(); |