summaryrefslogtreecommitdiff
path: root/chart2/source/view/axes
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/view/axes
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/view/axes')
-rw-r--r--chart2/source/view/axes/DateScaling.cxx26
-rw-r--r--chart2/source/view/axes/DateScaling.hxx6
2 files changed, 2 insertions, 30 deletions
diff --git a/chart2/source/view/axes/DateScaling.cxx b/chart2/source/view/axes/DateScaling.cxx
index d6d8323465b4..2dd8e3427835 100644
--- a/chart2/source/view/axes/DateScaling.cxx
+++ b/chart2/source/view/axes/DateScaling.cxx
@@ -104,20 +104,9 @@ OUString SAL_CALL DateScaling::getServiceName()
return OUString(lcl_aServiceName_DateScaling);
}
-uno::Sequence< OUString > DateScaling::getSupportedServiceNames_Static()
-{
- return { lcl_aServiceName_DateScaling };
-}
-
-// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
OUString SAL_CALL DateScaling::getImplementationName()
throw( css::uno::RuntimeException, std::exception )
{
- return getImplementationName_Static();
-}
-
-OUString DateScaling::getImplementationName_Static()
-{
return OUString(lcl_aServiceName_DateScaling);
}
@@ -130,7 +119,7 @@ sal_Bool SAL_CALL DateScaling::supportsService( const OUString& rServiceName )
css::uno::Sequence< OUString > SAL_CALL DateScaling::getSupportedServiceNames()
throw( css::uno::RuntimeException, std::exception )
{
- return getSupportedServiceNames_Static();
+ return { lcl_aServiceName_DateScaling };
}
InverseDateScaling::InverseDateScaling( const Date& rNullDate, sal_Int32 nTimeUnit, bool bShifted )
@@ -204,20 +193,9 @@ OUString SAL_CALL InverseDateScaling::getServiceName()
return OUString(lcl_aServiceName_InverseDateScaling);
}
-uno::Sequence< OUString > InverseDateScaling::getSupportedServiceNames_Static()
-{
- return { lcl_aServiceName_InverseDateScaling };
-}
-
-// implement XServiceInfo methods basing upon getSupportedServiceNames_Static
OUString SAL_CALL InverseDateScaling::getImplementationName()
throw( css::uno::RuntimeException, std::exception )
{
- return getImplementationName_Static();
-}
-
-OUString InverseDateScaling::getImplementationName_Static()
-{
return OUString(lcl_aServiceName_InverseDateScaling);
}
@@ -230,7 +208,7 @@ sal_Bool SAL_CALL InverseDateScaling::supportsService( const OUString& rServiceN
css::uno::Sequence< OUString > SAL_CALL InverseDateScaling::getSupportedServiceNames()
throw( css::uno::RuntimeException, std::exception )
{
- return getSupportedServiceNames_Static();
+ return { lcl_aServiceName_InverseDateScaling };
}
} //namespace chart
diff --git a/chart2/source/view/axes/DateScaling.hxx b/chart2/source/view/axes/DateScaling.hxx
index 2aedbe5c56df..3ee7f22a8568 100644
--- a/chart2/source/view/axes/DateScaling.hxx
+++ b/chart2/source/view/axes/DateScaling.hxx
@@ -48,9 +48,6 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw( css::uno::RuntimeException, std::exception ) override;
- static OUString getImplementationName_Static();
- static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
-
// ____ XScaling ____
virtual double SAL_CALL doScaling( double value )
throw (css::uno::RuntimeException, std::exception) override;
@@ -88,9 +85,6 @@ public:
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
throw( css::uno::RuntimeException, std::exception ) override;
- static OUString getImplementationName_Static();
- static css::uno::Sequence< OUString > getSupportedServiceNames_Static();
-
// ____ XScaling ____
virtual double SAL_CALL doScaling( double value )
throw (css::uno::RuntimeException, std::exception) override;