summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-03-07 17:35:53 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-03-08 08:13:44 +0100
commit44d5188b2fd8afc82aa8fda1ad4b374734129aea (patch)
tree07fae7bdc2d87332370d064f9fc81b693a477215 /chart2
parent5eba05a0582cbb836c3715089e5d3bfe1ee19ded (diff)
loplugin:unusedfields
Change-Id: Id332557cbe7fb42d3d794612f26aa3ac161548d9 Reviewed-on: https://gerrit.libreoffice.org/50902 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/model/template/AreaChartType.cxx8
-rw-r--r--chart2/source/model/template/AreaChartType.hxx2
-rw-r--r--chart2/source/model/template/BarChartType.cxx8
-rw-r--r--chart2/source/model/template/BarChartType.hxx2
-rw-r--r--chart2/source/model/template/BubbleChartType.cxx8
-rw-r--r--chart2/source/model/template/BubbleChartType.hxx3
-rw-r--r--chart2/source/model/template/CandleStickChartType.cxx8
-rw-r--r--chart2/source/model/template/CandleStickChartType.hxx3
-rw-r--r--chart2/source/model/template/ChartType.cxx5
-rw-r--r--chart2/source/model/template/ChartType.hxx5
-rw-r--r--chart2/source/model/template/ColumnChartType.cxx8
-rw-r--r--chart2/source/model/template/ColumnChartType.hxx2
-rw-r--r--chart2/source/model/template/FilledNetChartType.cxx8
-rw-r--r--chart2/source/model/template/FilledNetChartType.hxx2
-rw-r--r--chart2/source/model/template/GL3DBarChartType.cxx7
-rw-r--r--chart2/source/model/template/GL3DBarChartType.hxx2
-rw-r--r--chart2/source/model/template/GL3DBarChartTypeTemplate.cxx3
-rw-r--r--chart2/source/model/template/LineChartType.cxx8
-rw-r--r--chart2/source/model/template/LineChartType.hxx2
-rw-r--r--chart2/source/model/template/NetChartType.cxx12
-rw-r--r--chart2/source/model/template/NetChartType.hxx4
-rw-r--r--chart2/source/model/template/PieChartType.cxx8
-rw-r--r--chart2/source/model/template/PieChartType.hxx3
-rw-r--r--chart2/source/model/template/ScatterChartType.cxx8
-rw-r--r--chart2/source/model/template/ScatterChartType.hxx1
25 files changed, 48 insertions, 82 deletions
diff --git a/chart2/source/model/template/AreaChartType.cxx b/chart2/source/model/template/AreaChartType.cxx
index b10d6110ae3b..3427a131fd5d 100644
--- a/chart2/source/model/template/AreaChartType.cxx
+++ b/chart2/source/model/template/AreaChartType.cxx
@@ -26,9 +26,7 @@ using namespace ::com::sun::star;
namespace chart
{
-AreaChartType::AreaChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- ChartType( xContext )
+AreaChartType::AreaChartType()
{}
AreaChartType::AreaChartType( const AreaChartType & rOther ) :
@@ -70,10 +68,10 @@ css::uno::Sequence< OUString > SAL_CALL AreaChartType::getSupportedServiceNames(
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_AreaChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_AreaChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::AreaChartType(context));
+ return cppu::acquire(new ::chart::AreaChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/AreaChartType.hxx b/chart2/source/model/template/AreaChartType.hxx
index 8f3b67a2d6b6..acb76ef106cb 100644
--- a/chart2/source/model/template/AreaChartType.hxx
+++ b/chart2/source/model/template/AreaChartType.hxx
@@ -27,7 +27,7 @@ namespace chart
class AreaChartType final : public ChartType
{
public:
- explicit AreaChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit AreaChartType();
virtual ~AreaChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/BarChartType.cxx b/chart2/source/model/template/BarChartType.cxx
index bfdf6ec47249..ab71366b4fec 100644
--- a/chart2/source/model/template/BarChartType.cxx
+++ b/chart2/source/model/template/BarChartType.cxx
@@ -26,9 +26,7 @@ using namespace ::com::sun::star;
namespace chart
{
-BarChartType::BarChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- ChartType( xContext )
+BarChartType::BarChartType()
{}
BarChartType::BarChartType( const BarChartType & rOther ) :
@@ -80,10 +78,10 @@ css::uno::Sequence< OUString > SAL_CALL BarChartType::getSupportedServiceNames()
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_BarChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_BarChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::BarChartType(context));
+ return cppu::acquire(new ::chart::BarChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/BarChartType.hxx b/chart2/source/model/template/BarChartType.hxx
index 8d04613ebc97..4d090c783ebb 100644
--- a/chart2/source/model/template/BarChartType.hxx
+++ b/chart2/source/model/template/BarChartType.hxx
@@ -27,7 +27,7 @@ namespace chart
class BarChartType final : public ChartType
{
public:
- explicit BarChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit BarChartType();
virtual ~BarChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/BubbleChartType.cxx b/chart2/source/model/template/BubbleChartType.cxx
index 505e4bf60414..6d154031846b 100644
--- a/chart2/source/model/template/BubbleChartType.cxx
+++ b/chart2/source/model/template/BubbleChartType.cxx
@@ -93,9 +93,7 @@ struct StaticBubbleChartTypeInfo : public rtl::StaticAggregate< uno::Reference<
namespace chart
{
-BubbleChartType::BubbleChartType(
- const uno::Reference< uno::XComponentContext > & xContext )
- : ChartType( xContext )
+BubbleChartType::BubbleChartType()
{
}
@@ -215,10 +213,10 @@ css::uno::Sequence< OUString > SAL_CALL BubbleChartType::getSupportedServiceName
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_BubbleChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_BubbleChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::BubbleChartType(context));
+ return cppu::acquire(new ::chart::BubbleChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/BubbleChartType.hxx b/chart2/source/model/template/BubbleChartType.hxx
index 5fe58f3a15da..099cbcc82ce8 100644
--- a/chart2/source/model/template/BubbleChartType.hxx
+++ b/chart2/source/model/template/BubbleChartType.hxx
@@ -28,8 +28,7 @@ namespace chart
class BubbleChartType final : public ChartType
{
public:
- explicit BubbleChartType(
- css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit BubbleChartType();
virtual ~BubbleChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/CandleStickChartType.cxx b/chart2/source/model/template/CandleStickChartType.cxx
index 619af6cb08f7..4c1e4783d68f 100644
--- a/chart2/source/model/template/CandleStickChartType.cxx
+++ b/chart2/source/model/template/CandleStickChartType.cxx
@@ -142,9 +142,7 @@ struct StaticCandleStickChartTypeInfo : public rtl::StaticAggregate< uno::Refere
namespace chart
{
-CandleStickChartType::CandleStickChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- ChartType( xContext )
+CandleStickChartType::CandleStickChartType()
{
Reference< beans::XPropertySet > xWhiteDayProps( new ::chart::StockBar( true ));
Reference< beans::XPropertySet > xBlackDayProps( new ::chart::StockBar( false ));
@@ -331,10 +329,10 @@ css::uno::Sequence< OUString > SAL_CALL CandleStickChartType::getSupportedServic
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_CandleStickChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_CandleStickChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::CandleStickChartType(context));
+ return cppu::acquire(new ::chart::CandleStickChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/CandleStickChartType.hxx b/chart2/source/model/template/CandleStickChartType.hxx
index c153ad8a5892..b3f8d37ec306 100644
--- a/chart2/source/model/template/CandleStickChartType.hxx
+++ b/chart2/source/model/template/CandleStickChartType.hxx
@@ -27,8 +27,7 @@ namespace chart
class CandleStickChartType final : public ChartType
{
public:
- explicit CandleStickChartType(
- css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit CandleStickChartType();
virtual ~CandleStickChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/ChartType.cxx b/chart2/source/model/template/ChartType.cxx
index 1e8e10ecd2d3..26f3b700af71 100644
--- a/chart2/source/model/template/ChartType.cxx
+++ b/chart2/source/model/template/ChartType.cxx
@@ -37,11 +37,9 @@ using ::com::sun::star::uno::Reference;
namespace chart
{
-ChartType::ChartType(
- const Reference< uno::XComponentContext > & xContext ) :
+ChartType::ChartType() :
::property::OPropertySet( m_aMutex ),
m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder()),
- m_xContext( xContext ),
m_bNotifyChanges( true )
{}
@@ -50,7 +48,6 @@ ChartType::ChartType( const ChartType & rOther ) :
impl::ChartType_Base(),
::property::OPropertySet( rOther, m_aMutex ),
m_xModifyEventForwarder( ModifyListenerHelper::createModifyEventForwarder()),
- m_xContext( rOther.m_xContext ),
m_bNotifyChanges( true )
{
{
diff --git a/chart2/source/model/template/ChartType.hxx b/chart2/source/model/template/ChartType.hxx
index 57b12f67a5fd..7deffdd16c45 100644
--- a/chart2/source/model/template/ChartType.hxx
+++ b/chart2/source/model/template/ChartType.hxx
@@ -53,7 +53,7 @@ class ChartType :
public ::property::OPropertySet
{
public:
- explicit ChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit ChartType();
virtual ~ChartType() override;
/// merge XInterface implementations
@@ -123,9 +123,6 @@ private:
const css::uno::Reference< css::chart2::XDataSeries >& aDataSeries );
private:
- css::uno::Reference< css::uno::XComponentContext >
- const m_xContext;
-
typedef
std::vector< css::uno::Reference< css::chart2::XDataSeries > > tDataSeriesContainerType;
diff --git a/chart2/source/model/template/ColumnChartType.cxx b/chart2/source/model/template/ColumnChartType.cxx
index 668cdb9d2e0b..d969cbe86108 100644
--- a/chart2/source/model/template/ColumnChartType.cxx
+++ b/chart2/source/model/template/ColumnChartType.cxx
@@ -122,9 +122,7 @@ struct StaticColumnChartTypeInfo : public rtl::StaticAggregate< uno::Reference<
namespace chart
{
-ColumnChartType::ColumnChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- ChartType( xContext )
+ColumnChartType::ColumnChartType()
{}
ColumnChartType::ColumnChartType( const ColumnChartType & rOther ) :
@@ -197,10 +195,10 @@ css::uno::Sequence< OUString > SAL_CALL ColumnChartType::getSupportedServiceName
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_ColumnChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_ColumnChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::ColumnChartType(context));
+ return cppu::acquire(new ::chart::ColumnChartType());
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/ColumnChartType.hxx b/chart2/source/model/template/ColumnChartType.hxx
index 860c13ceb68a..d7b879479bf6 100644
--- a/chart2/source/model/template/ColumnChartType.hxx
+++ b/chart2/source/model/template/ColumnChartType.hxx
@@ -27,7 +27,7 @@ namespace chart
class ColumnChartType final : public ChartType
{
public:
- explicit ColumnChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit ColumnChartType();
virtual ~ColumnChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/FilledNetChartType.cxx b/chart2/source/model/template/FilledNetChartType.cxx
index dfb78ecf6a44..580e55351f1f 100644
--- a/chart2/source/model/template/FilledNetChartType.cxx
+++ b/chart2/source/model/template/FilledNetChartType.cxx
@@ -34,9 +34,7 @@ using ::com::sun::star::uno::Sequence;
namespace chart
{
-FilledNetChartType::FilledNetChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- NetChartType_Base( xContext )
+FilledNetChartType::FilledNetChartType()
{}
FilledNetChartType::FilledNetChartType( const FilledNetChartType & rOther ) :
@@ -80,10 +78,10 @@ css::uno::Sequence< OUString > SAL_CALL FilledNetChartType::getSupportedServiceN
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_FilledNetChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_FilledNetChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::FilledNetChartType(context));
+ return cppu::acquire(new ::chart::FilledNetChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/FilledNetChartType.hxx b/chart2/source/model/template/FilledNetChartType.hxx
index 48109fb31bec..baa2b9efb91b 100644
--- a/chart2/source/model/template/FilledNetChartType.hxx
+++ b/chart2/source/model/template/FilledNetChartType.hxx
@@ -27,7 +27,7 @@ namespace chart
class FilledNetChartType final : public NetChartType_Base
{
public:
- explicit FilledNetChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit FilledNetChartType();
virtual ~FilledNetChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/GL3DBarChartType.cxx b/chart2/source/model/template/GL3DBarChartType.cxx
index e40e43477d05..3a96833138af 100644
--- a/chart2/source/model/template/GL3DBarChartType.cxx
+++ b/chart2/source/model/template/GL3DBarChartType.cxx
@@ -89,8 +89,7 @@ struct ChartTypeInfo : public rtl::StaticAggregate<uno::Reference<beans::XProper
}
-GL3DBarChartType::GL3DBarChartType( const uno::Reference<uno::XComponentContext>& xContext ) :
- ChartType(xContext)
+GL3DBarChartType::GL3DBarChartType()
{
}
@@ -157,10 +156,10 @@ css::uno::Reference<css::beans::XPropertySetInfo> GL3DBarChartType::getPropertyS
}
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_GL3DBarChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_GL3DBarChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::GL3DBarChartType(context));
+ return cppu::acquire(new ::chart::GL3DBarChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/GL3DBarChartType.hxx b/chart2/source/model/template/GL3DBarChartType.hxx
index 3161285df271..09bacd33c803 100644
--- a/chart2/source/model/template/GL3DBarChartType.hxx
+++ b/chart2/source/model/template/GL3DBarChartType.hxx
@@ -21,7 +21,7 @@ namespace chart {
class GL3DBarChartType final : public ChartType
{
public:
- explicit GL3DBarChartType( const css::uno::Reference<css::uno::XComponentContext>& xContext );
+ explicit GL3DBarChartType();
virtual ~GL3DBarChartType() override;
virtual css::uno::Sequence< OUString > SAL_CALL
diff --git a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx
index 668472e54f04..99eb2860a097 100644
--- a/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx
+++ b/chart2/source/model/template/GL3DBarChartTypeTemplate.cxx
@@ -151,8 +151,7 @@ GL3DBarChartTypeTemplate::getChartTypeForNewSeries( const uno::Sequence<uno::Ref
try
{
- rtl::Reference<GL3DBarChartType> chart(
- new GL3DBarChartType(GetComponentContext()));
+ rtl::Reference<GL3DBarChartType> chart(new GL3DBarChartType());
bool bVal = false;
getFastPropertyValue(PROP_GL3DCHARTTYPE_ROUNDED_EDGE) >>= bVal;
chart->setPropertyValue(CHART_UNONAME_ROUNDED_EDGE, uno::Any(bVal));
diff --git a/chart2/source/model/template/LineChartType.cxx b/chart2/source/model/template/LineChartType.cxx
index b82dd9f8d6af..e91ec3bb7204 100644
--- a/chart2/source/model/template/LineChartType.cxx
+++ b/chart2/source/model/template/LineChartType.cxx
@@ -131,9 +131,7 @@ struct StaticLineChartTypeInfo : public rtl::StaticAggregate< uno::Reference< be
namespace chart
{
-LineChartType::LineChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- ChartType( xContext )
+LineChartType::LineChartType()
{
}
@@ -199,10 +197,10 @@ css::uno::Sequence< OUString > SAL_CALL LineChartType::getSupportedServiceNames(
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_LineChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_LineChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::LineChartType(context));
+ return cppu::acquire(new ::chart::LineChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/LineChartType.hxx b/chart2/source/model/template/LineChartType.hxx
index 18269668db70..8d823e80030c 100644
--- a/chart2/source/model/template/LineChartType.hxx
+++ b/chart2/source/model/template/LineChartType.hxx
@@ -28,7 +28,7 @@ namespace chart
class LineChartType final : public ChartType
{
public:
- explicit LineChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit LineChartType();
virtual ~LineChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/NetChartType.cxx b/chart2/source/model/template/NetChartType.cxx
index 78e14faad28d..869a2c3bf146 100644
--- a/chart2/source/model/template/NetChartType.cxx
+++ b/chart2/source/model/template/NetChartType.cxx
@@ -38,9 +38,7 @@ using ::com::sun::star::uno::Reference;
namespace chart
{
-NetChartType_Base::NetChartType_Base(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- ChartType( xContext )
+NetChartType_Base::NetChartType_Base()
{}
NetChartType_Base::NetChartType_Base( const NetChartType_Base & rOther ) :
@@ -134,9 +132,7 @@ uno::Reference< beans::XPropertySetInfo > SAL_CALL NetChartType_Base::getPropert
return *StaticNetChartTypeInfo::get();
}
-NetChartType::NetChartType(
- const uno::Reference< uno::XComponentContext > & xContext ) :
- NetChartType_Base( xContext )
+NetChartType::NetChartType()
{}
NetChartType::NetChartType( const NetChartType & rOther ) :
@@ -180,10 +176,10 @@ css::uno::Sequence< OUString > SAL_CALL NetChartType::getSupportedServiceNames()
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_NetChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_NetChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::NetChartType(context));
+ return cppu::acquire(new ::chart::NetChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/NetChartType.hxx b/chart2/source/model/template/NetChartType.hxx
index 53e588751a99..3d3efed8cfe5 100644
--- a/chart2/source/model/template/NetChartType.hxx
+++ b/chart2/source/model/template/NetChartType.hxx
@@ -27,7 +27,7 @@ namespace chart
class NetChartType_Base : public ChartType
{
public:
- explicit NetChartType_Base( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit NetChartType_Base();
virtual ~NetChartType_Base() override;
protected:
@@ -50,7 +50,7 @@ protected:
class NetChartType final : public NetChartType_Base
{
public:
- explicit NetChartType( css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit NetChartType();
virtual ~NetChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/PieChartType.cxx b/chart2/source/model/template/PieChartType.cxx
index 96a6da5c64a0..a05103940355 100644
--- a/chart2/source/model/template/PieChartType.cxx
+++ b/chart2/source/model/template/PieChartType.cxx
@@ -121,9 +121,7 @@ struct StaticPieChartTypeInfo : public rtl::StaticAggregate< uno::Reference< bea
namespace chart
{
-PieChartType::PieChartType(
- const uno::Reference< uno::XComponentContext > & xContext) :
- ChartType( xContext )
+PieChartType::PieChartType()
{
}
@@ -234,10 +232,10 @@ css::uno::Sequence< OUString > SAL_CALL PieChartType::getSupportedServiceNames()
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_PieChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_PieChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::PieChartType(context));
+ return cppu::acquire(new ::chart::PieChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/PieChartType.hxx b/chart2/source/model/template/PieChartType.hxx
index ad2da929aa6f..897ec96950f1 100644
--- a/chart2/source/model/template/PieChartType.hxx
+++ b/chart2/source/model/template/PieChartType.hxx
@@ -27,8 +27,7 @@ namespace chart
class PieChartType final: public ChartType
{
public:
- explicit PieChartType(
- css::uno::Reference< css::uno::XComponentContext > const & xContext );
+ explicit PieChartType();
virtual ~PieChartType() override;
virtual OUString SAL_CALL
diff --git a/chart2/source/model/template/ScatterChartType.cxx b/chart2/source/model/template/ScatterChartType.cxx
index 1663e419a2b7..749a3e049c9d 100644
--- a/chart2/source/model/template/ScatterChartType.cxx
+++ b/chart2/source/model/template/ScatterChartType.cxx
@@ -137,11 +137,9 @@ namespace chart
{
ScatterChartType::ScatterChartType(
- const uno::Reference< uno::XComponentContext > & xContext,
chart2::CurveStyle eCurveStyle /* chart2::CurveStyle_LINES */ ,
sal_Int32 nResolution /* = 20 */,
- sal_Int32 nOrder /* = 3 */ ) :
- ChartType( xContext )
+ sal_Int32 nOrder /* = 3 */ )
{
if( eCurveStyle != chart2::CurveStyle_LINES )
setFastPropertyValue_NoBroadcast( PROP_SCATTERCHARTTYPE_CURVE_STYLE,
@@ -256,10 +254,10 @@ css::uno::Sequence< OUString > SAL_CALL ScatterChartType::getSupportedServiceNam
} // namespace chart
extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
-com_sun_star_comp_chart_ScatterChartType_get_implementation(css::uno::XComponentContext *context,
+com_sun_star_comp_chart_ScatterChartType_get_implementation(css::uno::XComponentContext * /*context*/,
css::uno::Sequence<css::uno::Any> const &)
{
- return cppu::acquire(new ::chart::ScatterChartType(context));
+ return cppu::acquire(new ::chart::ScatterChartType);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/chart2/source/model/template/ScatterChartType.hxx b/chart2/source/model/template/ScatterChartType.hxx
index db4899f5534b..cf61b9421537 100644
--- a/chart2/source/model/template/ScatterChartType.hxx
+++ b/chart2/source/model/template/ScatterChartType.hxx
@@ -29,7 +29,6 @@ class ScatterChartType final : public ChartType
{
public:
ScatterChartType(
- css::uno::Reference< css::uno::XComponentContext > const & xContext,
css::chart2::CurveStyle eCurveStyle = css::chart2::CurveStyle_LINES,
sal_Int32 nResolution = 20,
sal_Int32 nOrder = 3 );