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/workbench/addin/sampleaddin.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/workbench/addin/sampleaddin.cxx')
-rw-r--r-- | chart2/workbench/addin/sampleaddin.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/chart2/workbench/addin/sampleaddin.cxx b/chart2/workbench/addin/sampleaddin.cxx index a136747f9068..6fc40ebc7d86 100644 --- a/chart2/workbench/addin/sampleaddin.cxx +++ b/chart2/workbench/addin/sampleaddin.cxx @@ -158,14 +158,12 @@ OUString SampleAddIn::getImplementationName_Static() uno::Sequence< OUString > SampleAddIn::getSupportedServiceNames_Static() { - uno::Sequence< OUString > aSeq( 4 ); - - aSeq[ 0 ] = "com.sun.star.chart.ChartAxisXSupplier"; - aSeq[ 1 ] = "com.sun.star.chart.ChartAxisYSupplier"; - aSeq[ 2 ] = "com.sun.star.chart.Diagram"; - aSeq[ 3 ] = "com.sun.star.chart.SampleAddIn"; - - return aSeq; + return { + "com.sun.star.chart.ChartAxisXSupplier", + "com.sun.star.chart.ChartAxisYSupplier", + "com.sun.star.chart.Diagram", + "com.sun.star.chart.SampleAddIn" + }; } uno::Reference< uno::XInterface > SAL_CALL SampleAddIn_CreateInstance( |