summaryrefslogtreecommitdiff
path: root/chart2/source/model/template/NetChartType.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-10 15:06:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-11 06:59:15 +0000
commit22d0d2455f9aa699fac95c450da725c603333132 (patch)
tree2f619071b7967291b3767292c2a91fbc8b7a2d09 /chart2/source/model/template/NetChartType.cxx
parent78b4a1fb01af9ad3b3395a22f6e396be914b553e (diff)
loplugin:expandablemethods in chart2
Change-Id: Ie6650628683ec7c67359351eec0e09033f2b50cb Reviewed-on: https://gerrit.libreoffice.org/30750 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/model/template/NetChartType.cxx')
-rw-r--r--chart2/source/model/template/NetChartType.cxx20
1 files changed, 4 insertions, 16 deletions
diff --git a/chart2/source/model/template/NetChartType.cxx b/chart2/source/model/template/NetChartType.cxx
index b04892f6bd45..b079b87e7360 100644
--- a/chart2/source/model/template/NetChartType.cxx
+++ b/chart2/source/model/template/NetChartType.cxx
@@ -166,24 +166,9 @@ OUString SAL_CALL NetChartType::getChartType()
return OUString(CHART2_SERVICE_NAME_CHARTTYPE_NET);
}
-uno::Sequence< OUString > NetChartType::getSupportedServiceNames_Static()
-{
- uno::Sequence< OUString > aServices( 3 );
- aServices[ 0 ] = CHART2_SERVICE_NAME_CHARTTYPE_NET;
- aServices[ 1 ] = "com.sun.star.chart2.ChartType";
- aServices[ 2 ] = "com.sun.star.beans.PropertySet";
- return aServices;
-}
-
-// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
OUString SAL_CALL NetChartType::getImplementationName()
throw( css::uno::RuntimeException, std::exception )
{
- return getImplementationName_Static();
-}
-
-OUString NetChartType::getImplementationName_Static()
-{
return OUString("com.sun.star.comp.chart.NetChartType");
}
@@ -196,7 +181,10 @@ sal_Bool SAL_CALL NetChartType::supportsService( const OUString& rServiceName )
css::uno::Sequence< OUString > SAL_CALL NetChartType::getSupportedServiceNames()
throw( css::uno::RuntimeException, std::exception )
{
- return getSupportedServiceNames_Static();
+ return {
+ CHART2_SERVICE_NAME_CHARTTYPE_NET,
+ "com.sun.star.chart2.ChartType",
+ "com.sun.star.beans.PropertySet" };
}
} // namespace chart