diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-10 15:06:03 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-11 06:59:15 +0000 |
commit | 22d0d2455f9aa699fac95c450da725c603333132 (patch) | |
tree | 2f619071b7967291b3767292c2a91fbc8b7a2d09 /chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx | |
parent | 78b4a1fb01af9ad3b3395a22f6e396be914b553e (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/controller/chartapiwrapper/DiagramWrapper.cxx')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx | 32 |
1 files changed, 10 insertions, 22 deletions
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx index 78195fc5ce1d..bea455e4e9da 100644 --- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx +++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx @@ -2066,30 +2066,9 @@ const std::vector< WrappedProperty* > DiagramWrapper::createWrappedProperties() return aWrappedProperties; } -uno::Sequence< OUString > DiagramWrapper::getSupportedServiceNames_Static() -{ - uno::Sequence< OUString > aServices( 8 ); - aServices[ 0 ] = "com.sun.star.chart.Diagram"; - aServices[ 1 ] = "com.sun.star.xml.UserDefinedAttributesSupplier"; - aServices[ 2 ] = "com.sun.star.chart.StackableDiagram"; - aServices[ 3 ] = "com.sun.star.chart.ChartAxisXSupplier"; - aServices[ 4 ] = "com.sun.star.chart.ChartAxisYSupplier"; - aServices[ 5 ] = "com.sun.star.chart.ChartAxisZSupplier"; - aServices[ 6 ] = "com.sun.star.chart.ChartTwoAxisXSupplier"; - aServices[ 7 ] = "com.sun.star.chart.ChartTwoAxisYSupplier"; - - return aServices; -} - -// implement XServiceInfo methods basing upon getSupportedServiceNames_Static OUString SAL_CALL DiagramWrapper::getImplementationName() throw( css::uno::RuntimeException, std::exception ) { - return getImplementationName_Static(); -} - -OUString DiagramWrapper::getImplementationName_Static() -{ return OUString("com.sun.star.comp.chart.Diagram"); } @@ -2102,7 +2081,16 @@ sal_Bool SAL_CALL DiagramWrapper::supportsService( const OUString& rServiceName css::uno::Sequence< OUString > SAL_CALL DiagramWrapper::getSupportedServiceNames() throw( css::uno::RuntimeException, std::exception ) { - return getSupportedServiceNames_Static(); + return { + "com.sun.star.chart.Diagram", + "com.sun.star.xml.UserDefinedAttributesSupplier", + "com.sun.star.chart.StackableDiagram", + "com.sun.star.chart.ChartAxisXSupplier", + "com.sun.star.chart.ChartAxisYSupplier", + "com.sun.star.chart.ChartAxisZSupplier", + "com.sun.star.chart.ChartTwoAxisXSupplier", + "com.sun.star.chart.ChartTwoAxisYSupplier" + }; } } // namespace wrapper |