diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-18 09:28:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-19 11:32:50 +0100 |
commit | 48251502a8143570810a05bd46e22efa34ed5600 (patch) | |
tree | 289b9467cb0fcd6241528834fb57f0ec2a23fab3 /chart2/source/model/main | |
parent | 79827580ce7f6be4ff9017b516dc45c9eba5e01e (diff) |
loplugin:unusedfields
Change-Id: I84a7bcb891548416f0e1f1b20059f9b20c890d4c
Reviewed-on: https://gerrit.libreoffice.org/46686
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/main')
-rw-r--r-- | chart2/source/model/main/BaseCoordinateSystem.cxx | 3 | ||||
-rw-r--r-- | chart2/source/model/main/CartesianCoordinateSystem.cxx | 21 | ||||
-rw-r--r-- | chart2/source/model/main/PolarCoordinateSystem.cxx | 24 |
3 files changed, 19 insertions, 29 deletions
diff --git a/chart2/source/model/main/BaseCoordinateSystem.cxx b/chart2/source/model/main/BaseCoordinateSystem.cxx index ec8d16100b46..0079926c4f04 100644 --- a/chart2/source/model/main/BaseCoordinateSystem.cxx +++ b/chart2/source/model/main/BaseCoordinateSystem.cxx @@ -114,10 +114,8 @@ namespace chart { BaseCoordinateSystem::BaseCoordinateSystem( - const Reference< uno::XComponentContext > & xContext, sal_Int32 nDimensionCount /* = 2 */ ) : ::property::OPropertySet( m_aMutex ), - m_xContext( xContext ), m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder()), m_nDimensionCount( nDimensionCount ) { @@ -158,7 +156,6 @@ BaseCoordinateSystem::BaseCoordinateSystem( impl::BaseCoordinateSystem_Base(), MutexContainer(), ::property::OPropertySet( rSource, m_aMutex ), - m_xContext( rSource.m_xContext ), m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder()), m_nDimensionCount( rSource.m_nDimensionCount ), m_aOrigin( rSource.m_aOrigin ) diff --git a/chart2/source/model/main/CartesianCoordinateSystem.cxx b/chart2/source/model/main/CartesianCoordinateSystem.cxx index e2f2f5f2fda0..39d86ff53cb1 100644 --- a/chart2/source/model/main/CartesianCoordinateSystem.cxx +++ b/chart2/source/model/main/CartesianCoordinateSystem.cxx @@ -39,9 +39,8 @@ namespace chart // explicit CartesianCoordinateSystem::CartesianCoordinateSystem( - const uno::Reference< uno::XComponentContext > & xContext, sal_Int32 nDimensionCount /* = 2 */ ) : - BaseCoordinateSystem( xContext, nDimensionCount ) + BaseCoordinateSystem( nDimensionCount ) {} CartesianCoordinateSystem::CartesianCoordinateSystem( @@ -87,9 +86,8 @@ css::uno::Sequence< OUString > SAL_CALL CartesianCoordinateSystem::getSupportedS // ==== CartesianCoordinateSystem2d ==== -CartesianCoordinateSystem2d::CartesianCoordinateSystem2d( - const uno::Reference< uno::XComponentContext > & xContext ) : - CartesianCoordinateSystem( xContext, 2 ) +CartesianCoordinateSystem2d::CartesianCoordinateSystem2d() : + CartesianCoordinateSystem( 2 ) {} CartesianCoordinateSystem2d::~CartesianCoordinateSystem2d() @@ -116,9 +114,8 @@ css::uno::Sequence< OUString > SAL_CALL CartesianCoordinateSystem2d::getSupporte // ==== CartesianCoordinateSystem3d ==== -CartesianCoordinateSystem3d::CartesianCoordinateSystem3d( - const uno::Reference< uno::XComponentContext > & xContext ) : - CartesianCoordinateSystem( xContext, 3 ) +CartesianCoordinateSystem3d::CartesianCoordinateSystem3d() : + CartesianCoordinateSystem( 3 ) {} CartesianCoordinateSystem3d::~CartesianCoordinateSystem3d() @@ -146,17 +143,17 @@ css::uno::Sequence< OUString > SAL_CALL CartesianCoordinateSystem3d::getSupporte } // namespace chart extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * -com_sun_star_comp_chart2_CartesianCoordinateSystem2d_get_implementation(css::uno::XComponentContext *context, +com_sun_star_comp_chart2_CartesianCoordinateSystem2d_get_implementation(css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new ::chart::CartesianCoordinateSystem2d(context)); + return cppu::acquire(new ::chart::CartesianCoordinateSystem2d); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * -com_sun_star_comp_chart2_CartesianCoordinateSystem3d_get_implementation(css::uno::XComponentContext *context, +com_sun_star_comp_chart2_CartesianCoordinateSystem3d_get_implementation(css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new ::chart::CartesianCoordinateSystem3d(context)); + return cppu::acquire(new ::chart::CartesianCoordinateSystem3d); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/chart2/source/model/main/PolarCoordinateSystem.cxx b/chart2/source/model/main/PolarCoordinateSystem.cxx index a47f5a2add6c..49bede5f2b1b 100644 --- a/chart2/source/model/main/PolarCoordinateSystem.cxx +++ b/chart2/source/model/main/PolarCoordinateSystem.cxx @@ -38,10 +38,8 @@ namespace chart { // explicit -PolarCoordinateSystem::PolarCoordinateSystem( - const uno::Reference< uno::XComponentContext > & xContext, - sal_Int32 nDimensionCount /* = 2 */ ) : - BaseCoordinateSystem( xContext, nDimensionCount ) +PolarCoordinateSystem::PolarCoordinateSystem( sal_Int32 nDimensionCount /* = 2 */ ) : + BaseCoordinateSystem( nDimensionCount ) {} PolarCoordinateSystem::PolarCoordinateSystem( @@ -87,9 +85,8 @@ css::uno::Sequence< OUString > SAL_CALL PolarCoordinateSystem::getSupportedServi // ==== PolarCoordinateSystem2d ==== -PolarCoordinateSystem2d::PolarCoordinateSystem2d( - const uno::Reference< uno::XComponentContext > & xContext ) : - PolarCoordinateSystem( xContext, 2 ) +PolarCoordinateSystem2d::PolarCoordinateSystem2d() : + PolarCoordinateSystem( 2 ) {} PolarCoordinateSystem2d::~PolarCoordinateSystem2d() @@ -115,9 +112,8 @@ css::uno::Sequence< OUString > SAL_CALL PolarCoordinateSystem2d::getSupportedSer // ==== PolarCoordinateSystem3d ==== -PolarCoordinateSystem3d::PolarCoordinateSystem3d( - const uno::Reference< uno::XComponentContext > & xContext ) : - PolarCoordinateSystem( xContext, 3 ) +PolarCoordinateSystem3d::PolarCoordinateSystem3d() : + PolarCoordinateSystem( 3 ) {} PolarCoordinateSystem3d::~PolarCoordinateSystem3d() @@ -144,17 +140,17 @@ css::uno::Sequence< OUString > SAL_CALL PolarCoordinateSystem3d::getSupportedSer } // namespace chart extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * -com_sun_star_comp_chart2_PolarCoordinateSystem2d_get_implementation(css::uno::XComponentContext *context, +com_sun_star_comp_chart2_PolarCoordinateSystem2d_get_implementation(css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new ::chart::PolarCoordinateSystem2d(context)); + return cppu::acquire(new ::chart::PolarCoordinateSystem2d); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * -com_sun_star_comp_chart2_PolarCoordinateSystem3d_get_implementation(css::uno::XComponentContext *context, +com_sun_star_comp_chart2_PolarCoordinateSystem3d_get_implementation(css::uno::XComponentContext *, css::uno::Sequence<css::uno::Any> const &) { - return cppu::acquire(new ::chart::PolarCoordinateSystem3d(context)); + return cppu::acquire(new ::chart::PolarCoordinateSystem3d); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |