diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-26 14:59:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 06:09:29 +0000 |
commit | 883172375dbf5c0a79cbda5b615ff26ed27c78be (patch) | |
tree | 5d81ab1b28e7509a26148b602fd14f8c5c83642f /svx/source/unogallery | |
parent | a7ea18ffe715776cb0e2b39e98569c75605ee332 (diff) |
loplugin:expandablemethods in svx
Change-Id: I0d193ddf07cc0ddc89b6ce2df6eb71d44e49b631
Reviewed-on: https://gerrit.libreoffice.org/30295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/unogallery')
-rw-r--r-- | svx/source/unogallery/unogalitem.cxx | 18 | ||||
-rw-r--r-- | svx/source/unogallery/unogalitem.hxx | 3 | ||||
-rw-r--r-- | svx/source/unogallery/unogaltheme.cxx | 18 | ||||
-rw-r--r-- | svx/source/unogallery/unogaltheme.hxx | 3 |
4 files changed, 4 insertions, 38 deletions
diff --git a/svx/source/unogallery/unogalitem.cxx b/svx/source/unogallery/unogalitem.cxx index 037991f39d12..1b439c0484d3 100644 --- a/svx/source/unogallery/unogalitem.cxx +++ b/svx/source/unogallery/unogalitem.cxx @@ -117,24 +117,10 @@ void SAL_CALL GalleryItem::release() } -OUString GalleryItem::getImplementationName_Static() - throw() -{ - return OUString( "com.sun.star.comp.gallery.GalleryItem" ); -} - - -uno::Sequence< OUString > GalleryItem::getSupportedServiceNames_Static() - throw() -{ - uno::Sequence< OUString > aSeq { "com.sun.star.gallery.GalleryItem" }; - return aSeq; -} - OUString SAL_CALL GalleryItem::getImplementationName() throw( uno::RuntimeException, std::exception ) { - return getImplementationName_Static(); + return OUString( "com.sun.star.comp.gallery.GalleryItem" ); } sal_Bool SAL_CALL GalleryItem::supportsService( const OUString& ServiceName ) @@ -146,7 +132,7 @@ sal_Bool SAL_CALL GalleryItem::supportsService( const OUString& ServiceName ) uno::Sequence< OUString > SAL_CALL GalleryItem::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) { - return getSupportedServiceNames_Static(); + return { "com.sun.star.gallery.GalleryItem" }; } uno::Sequence< uno::Type > SAL_CALL GalleryItem::getTypes() diff --git a/svx/source/unogallery/unogalitem.hxx b/svx/source/unogallery/unogalitem.hxx index 92f57ec46753..d36754be8243 100644 --- a/svx/source/unogallery/unogalitem.hxx +++ b/svx/source/unogallery/unogalitem.hxx @@ -49,9 +49,6 @@ public: bool isValid() const; - static OUString getImplementationName_Static() throw(); - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - protected: // XInterface diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx index 325721d0ed43..4cee8ce8ea20 100644 --- a/svx/source/unogallery/unogaltheme.cxx +++ b/svx/source/unogallery/unogaltheme.cxx @@ -67,24 +67,10 @@ GalleryTheme::~GalleryTheme() } -OUString GalleryTheme::getImplementationName_Static() - throw() -{ - return OUString( "com.sun.star.comp.gallery.GalleryTheme" ); -} - - -uno::Sequence< OUString > GalleryTheme::getSupportedServiceNames_Static() - throw() -{ - uno::Sequence< OUString > aSeq { "com.sun.star.gallery.GalleryTheme" }; - return aSeq; -} - OUString SAL_CALL GalleryTheme::getImplementationName() throw( uno::RuntimeException, std::exception ) { - return getImplementationName_Static(); + return OUString( "com.sun.star.comp.gallery.GalleryTheme" ); } sal_Bool SAL_CALL GalleryTheme::supportsService( const OUString& ServiceName ) @@ -96,7 +82,7 @@ sal_Bool SAL_CALL GalleryTheme::supportsService( const OUString& ServiceName ) uno::Sequence< OUString > SAL_CALL GalleryTheme::getSupportedServiceNames() throw( uno::RuntimeException, std::exception ) { - return getSupportedServiceNames_Static(); + return { "com.sun.star.gallery.GalleryTheme" }; } uno::Sequence< uno::Type > SAL_CALL GalleryTheme::getTypes() diff --git a/svx/source/unogallery/unogaltheme.hxx b/svx/source/unogallery/unogaltheme.hxx index de1ff9d5f923..daf53d57ef47 100644 --- a/svx/source/unogallery/unogaltheme.hxx +++ b/svx/source/unogallery/unogaltheme.hxx @@ -47,9 +47,6 @@ public: explicit GalleryTheme( const OUString& rThemeName ); virtual ~GalleryTheme() override; - static OUString getImplementationName_Static() throw(); - static css::uno::Sequence< OUString > getSupportedServiceNames_Static() throw(); - protected: // XServiceInfo |