diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-12 16:57:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-12-13 08:12:45 +0100 |
commit | d59987b164bc32efe8f99ad49c139b4fc7ca3c2f (patch) | |
tree | 765652d6e940a5bdf43322ed54aa2f4c14116418 /lingucomponent/source | |
parent | b4641df5de7842d6a8fc2c4f839214bf01160c8c (diff) |
loplugin:expandablemethods
Change-Id: I333d91ea5ce78c82e9bb107f934614efc7bfb8f7
Reviewed-on: https://gerrit.libreoffice.org/85078
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'lingucomponent/source')
-rw-r--r-- | lingucomponent/source/languageguessing/guesslang.cxx | 6 | ||||
-rw-r--r-- | lingucomponent/source/numbertext/numbertext.cxx | 8 |
2 files changed, 1 insertions, 13 deletions
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx index a5695bb8dd69..254abc882e8e 100644 --- a/lingucomponent/source/languageguessing/guesslang.cxx +++ b/lingucomponent/source/languageguessing/guesslang.cxx @@ -94,7 +94,6 @@ public: virtual OUString SAL_CALL getImplementationName( ) override; virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override; virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override; - static Sequence< OUString > getSupportedServiceNames_Static( ); // XLanguageGuessing implementation virtual css::lang::Locale SAL_CALL guessPrimaryLanguage( const OUString& aText, ::sal_Int32 nStartPos, ::sal_Int32 nLen ) override; @@ -320,11 +319,6 @@ sal_Bool SAL_CALL LangGuess_Impl::supportsService( const OUString& ServiceName ) Sequence<OUString> SAL_CALL LangGuess_Impl::getSupportedServiceNames( ) { - return getSupportedServiceNames_Static(); -} - -Sequence<OUString> LangGuess_Impl::getSupportedServiceNames_Static( ) -{ return { SERVICENAME }; } diff --git a/lingucomponent/source/numbertext/numbertext.cxx b/lingucomponent/source/numbertext/numbertext.cxx index 7ea2db473b04..8c388e6adb92 100644 --- a/lingucomponent/source/numbertext/numbertext.cxx +++ b/lingucomponent/source/numbertext/numbertext.cxx @@ -87,7 +87,6 @@ public: virtual OUString SAL_CALL getImplementationName() override; virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override; virtual Sequence<OUString> SAL_CALL getSupportedServiceNames() override; - static Sequence<OUString> getSupportedServiceNames_Static(); // XNumberText implementation virtual OUString SAL_CALL getNumberText(const OUString& aText, @@ -168,12 +167,7 @@ sal_Bool SAL_CALL NumberText_Impl::supportsService(const OUString& ServiceName) return cppu::supportsService(this, ServiceName); } -Sequence<OUString> SAL_CALL NumberText_Impl::getSupportedServiceNames() -{ - return getSupportedServiceNames_Static(); -} - -Sequence<OUString> NumberText_Impl::getSupportedServiceNames_Static() { return { SERVICENAME }; } +Sequence<OUString> SAL_CALL NumberText_Impl::getSupportedServiceNames() { return { SERVICENAME }; } /** * Function to create a new component instance; is needed by factory helper implementation. |