summaryrefslogtreecommitdiff
path: root/chart2/source/tools/CachedDataSequence.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/tools/CachedDataSequence.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/tools/CachedDataSequence.cxx')
-rw-r--r--chart2/source/tools/CachedDataSequence.cxx23
1 files changed, 6 insertions, 17 deletions
diff --git a/chart2/source/tools/CachedDataSequence.cxx b/chart2/source/tools/CachedDataSequence.cxx
index 02ddf0f0b3ee..14792358c3b1 100644
--- a/chart2/source/tools/CachedDataSequence.cxx
+++ b/chart2/source/tools/CachedDataSequence.cxx
@@ -221,16 +221,6 @@ Sequence< Any > CachedDataSequence::Impl_getMixedData() const
return aResult;
}
-Sequence< OUString > CachedDataSequence::getSupportedServiceNames_Static()
-{
- Sequence< OUString > aServices( 4 );
- aServices[ 0 ] = lcl_aServiceName;
- aServices[ 1 ] = "com.sun.star.chart2.data.DataSequence";
- aServices[ 2 ] = "com.sun.star.chart2.data.NumericalDataSequence";
- aServices[ 3 ] = "com.sun.star.chart2.data.TextualDataSequence";
- return aServices;
-}
-
IMPLEMENT_FORWARD_XINTERFACE2( CachedDataSequence, CachedDataSequence_Base, OPropertyContainer )
IMPLEMENT_FORWARD_XTYPEPROVIDER2( CachedDataSequence, CachedDataSequence_Base, OPropertyContainer )
@@ -257,15 +247,9 @@ Reference< beans::XPropertySetInfo > SAL_CALL CachedDataSequence::getPropertySet
return new ::cppu::OPropertyArrayHelper( aProps );
}
-// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
OUString SAL_CALL CachedDataSequence::getImplementationName()
throw( css::uno::RuntimeException, std::exception )
{
- return getImplementationName_Static();
-}
-
-OUString CachedDataSequence::getImplementationName_Static()
-{
return OUString(lcl_aServiceName);
}
@@ -278,7 +262,12 @@ sal_Bool SAL_CALL CachedDataSequence::supportsService( const OUString& rServiceN
css::uno::Sequence< OUString > SAL_CALL CachedDataSequence::getSupportedServiceNames()
throw( css::uno::RuntimeException, std::exception )
{
- return getSupportedServiceNames_Static();
+ return {
+ lcl_aServiceName,
+ "com.sun.star.chart2.data.DataSequence",
+ "com.sun.star.chart2.data.NumericalDataSequence",
+ "com.sun.star.chart2.data.TextualDataSequence"
+ };
}
// ________ XNumericalDataSequence ________