summaryrefslogtreecommitdiff
path: root/chart2/source/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-12-23 09:30:48 +0200
committerNoel Grandin <noel@peralex.com>2015-12-23 09:38:46 +0200
commitc5458af9051c7c3579a381592a14af725691f88c (patch)
tree8daf61dd8eeb4e7b2fea937929f4b85cf2a5e29d /chart2/source/tools
parent395815caa6be493d0831a61ba3de4e7d5ba4ae1d (diff)
loplugin:unusedfields in chart2
Change-Id: I8203f84ad8b138932c990032e17ea5d2daf384bb
Diffstat (limited to 'chart2/source/tools')
-rw-r--r--chart2/source/tools/DataSourceHelper.cxx5
-rw-r--r--chart2/source/tools/LabeledDataSequence.cxx7
-rw-r--r--chart2/source/tools/RegressionCurveModel.cxx2
-rw-r--r--chart2/source/tools/RegressionEquation.cxx12
-rw-r--r--chart2/source/tools/RegressionEquation.hxx7
-rw-r--r--chart2/source/tools/Scaling.cxx36
6 files changed, 28 insertions, 41 deletions
diff --git a/chart2/source/tools/DataSourceHelper.cxx b/chart2/source/tools/DataSourceHelper.cxx
index 3413e1a34b5b..84cf5f7e4831 100644
--- a/chart2/source/tools/DataSourceHelper.cxx
+++ b/chart2/source/tools/DataSourceHelper.cxx
@@ -144,10 +144,9 @@ Reference< chart2::data::XLabeledDataSequence > DataSourceHelper::createLabeledD
return new ::chart::LabeledDataSequence( xValues );
}
-Reference< chart2::data::XLabeledDataSequence > DataSourceHelper::createLabeledDataSequence(
- const Reference< uno::XComponentContext >& xContext )
+Reference< chart2::data::XLabeledDataSequence > DataSourceHelper::createLabeledDataSequence()
{
- return new ::chart::LabeledDataSequence( xContext );
+ return new ::chart::LabeledDataSequence;
}
uno::Sequence< beans::PropertyValue > DataSourceHelper::createArguments(
diff --git a/chart2/source/tools/LabeledDataSequence.cxx b/chart2/source/tools/LabeledDataSequence.cxx
index 7acb72b4c6ce..a407008e982f 100644
--- a/chart2/source/tools/LabeledDataSequence.cxx
+++ b/chart2/source/tools/LabeledDataSequence.cxx
@@ -30,8 +30,7 @@ using ::com::sun::star::uno::Sequence;
namespace chart
{
-LabeledDataSequence::LabeledDataSequence( const Reference< uno::XComponentContext > & xContext ) :
- m_xContext( xContext ),
+LabeledDataSequence::LabeledDataSequence() :
m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder())
{}
@@ -183,10 +182,10 @@ css::uno::Sequence< OUString > SAL_CALL LabeledDataSequence::getSupportedService
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
-com_sun_star_comp_chart2_LabeledDataSequence_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart2_LabeledDataSequence_get_implementation(css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::LabeledDataSequence(context));
+ return cppu::acquire(new ::chart::LabeledDataSequence );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/tools/RegressionCurveModel.cxx b/chart2/source/tools/RegressionCurveModel.cxx
index dfafae4df28e..62489feeec99 100644
--- a/chart2/source/tools/RegressionCurveModel.cxx
+++ b/chart2/source/tools/RegressionCurveModel.cxx
@@ -190,7 +190,7 @@ RegressionCurveModel::RegressionCurveModel(
m_xContext( xContext ),
m_eRegressionCurveType( eCurveType ),
m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder()),
- m_xEquationProperties( new RegressionEquation( xContext ))
+ m_xEquationProperties( new RegressionEquation )
{
// set 0 line width (default) hard, so that it is always written to XML,
// because the old implementation uses different defaults
diff --git a/chart2/source/tools/RegressionEquation.cxx b/chart2/source/tools/RegressionEquation.cxx
index 5d3633c7de1d..4804c0c36390 100644
--- a/chart2/source/tools/RegressionEquation.cxx
+++ b/chart2/source/tools/RegressionEquation.cxx
@@ -180,18 +180,16 @@ struct StaticRegressionEquationInfo : public rtl::StaticAggregate< uno::Referenc
namespace chart
{
-RegressionEquation::RegressionEquation( const Reference< uno::XComponentContext > & xContext ) :
+RegressionEquation::RegressionEquation() :
::property::OPropertySet( m_aMutex ),
- m_xModifyEventForwarder( new ModifyListenerHelper::ModifyEventForwarder()),
- m_xContext( xContext )
+ m_xModifyEventForwarder( new ModifyListenerHelper::ModifyEventForwarder())
{}
RegressionEquation::RegressionEquation( const RegressionEquation & rOther ) :
MutexContainer(),
impl::RegressionEquation_Base(),
::property::OPropertySet( rOther, m_aMutex ),
- m_xModifyEventForwarder( new ModifyListenerHelper::ModifyEventForwarder()),
- m_xContext( nullptr )
+ m_xModifyEventForwarder( new ModifyListenerHelper::ModifyEventForwarder())
{}
RegressionEquation::~RegressionEquation()
@@ -346,10 +344,10 @@ IMPLEMENT_FORWARD_XINTERFACE2( RegressionEquation, RegressionEquation_Base, ::pr
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
-com_sun_star_comp_chart2_RegressionEquation_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart2_RegressionEquation_get_implementation(css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::RegressionEquation(context));
+ return cppu::acquire(new ::chart::RegressionEquation);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/tools/RegressionEquation.hxx b/chart2/source/tools/RegressionEquation.hxx
index 054633cb998c..d996f24f4d7b 100644
--- a/chart2/source/tools/RegressionEquation.hxx
+++ b/chart2/source/tools/RegressionEquation.hxx
@@ -53,9 +53,7 @@ class RegressionEquation :
public ::property::OPropertySet
{
public:
- explicit RegressionEquation(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > & xContext );
+ explicit RegressionEquation();
virtual ~RegressionEquation();
virtual OUString SAL_CALL
@@ -137,9 +135,6 @@ private:
::com::sun::star::chart2::XFormattedString > > m_aStrings;
::com::sun::star::uno::Reference< ::com::sun::star::util::XModifyListener > m_xModifyEventForwarder;
- ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext >
- m_xContext;
};
} // namespace chart
diff --git a/chart2/source/tools/Scaling.cxx b/chart2/source/tools/Scaling.cxx
index d61b359a99ab..cc5af4db6144 100644
--- a/chart2/source/tools/Scaling.cxx
+++ b/chart2/source/tools/Scaling.cxx
@@ -37,10 +37,9 @@ namespace chart
using namespace ::com::sun::star;
using namespace ::com::sun::star::chart2;
-LogarithmicScaling::LogarithmicScaling( const uno::Reference< uno::XComponentContext > & xContext ) :
+LogarithmicScaling::LogarithmicScaling() :
m_fBase( 10.0 ),
- m_fLogOfBase( log( 10.0 ) ),
- m_xContext( xContext )
+ m_fLogOfBase( log( 10.0 ) )
{
}
@@ -107,9 +106,8 @@ css::uno::Sequence< OUString > SAL_CALL LogarithmicScaling::getSupportedServiceN
return getSupportedServiceNames_Static();
}
-ExponentialScaling::ExponentialScaling( const uno::Reference< uno::XComponentContext > & xContext ) :
- m_fBase( 10.0 ),
- m_xContext( xContext )
+ExponentialScaling::ExponentialScaling() :
+ m_fBase( 10.0 )
{
}
@@ -175,10 +173,9 @@ css::uno::Sequence< OUString > SAL_CALL ExponentialScaling::getSupportedServiceN
return getSupportedServiceNames_Static();
}
-LinearScaling::LinearScaling( const uno::Reference< uno::XComponentContext > & xContext ) :
+LinearScaling::LinearScaling() :
m_fSlope( 1.0 ),
- m_fOffset( 0.0 ),
- m_xContext( xContext )
+ m_fOffset( 0.0 )
{}
LinearScaling::LinearScaling( double fSlope, double fOffset ) :
@@ -247,9 +244,8 @@ css::uno::Sequence< OUString > SAL_CALL LinearScaling::getSupportedServiceNames(
return getSupportedServiceNames_Static();
}
-PowerScaling::PowerScaling( const uno::Reference< uno::XComponentContext > & xContext ) :
- m_fExponent( 10.0 ),
- m_xContext( xContext )
+PowerScaling::PowerScaling() :
+ m_fExponent( 10.0 )
{}
PowerScaling::PowerScaling( double fExponent ) :
@@ -321,31 +317,31 @@ css::uno::Sequence< OUString > SAL_CALL PowerScaling::getSupportedServiceNames()
} //namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
-com_sun_star_chart2_LinearScaling_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_chart2_LinearScaling_get_implementation(css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new chart::LinearScaling(context));
+ return cppu::acquire(new chart::LinearScaling );
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
-com_sun_star_chart2_ExponentialScaling_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_chart2_ExponentialScaling_get_implementation(css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new chart::ExponentialScaling(context));
+ return cppu::acquire(new chart::ExponentialScaling );
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
-com_sun_star_chart2_LogarithmicScaling_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_chart2_LogarithmicScaling_get_implementation(css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new chart::LogarithmicScaling(context));
+ return cppu::acquire(new chart::LogarithmicScaling );
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface * SAL_CALL
-com_sun_star_chart2_PowerScaling_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_chart2_PowerScaling_get_implementation(css::uno::XComponentContext *,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new chart::PowerScaling(context));
+ return cppu::acquire(new chart::PowerScaling );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */