diff options
Diffstat (limited to 'svx/source/unogallery')
-rw-r--r-- | svx/source/unogallery/unogaltheme.cxx | 12 | ||||
-rw-r--r-- | svx/source/unogallery/unogalthemeprovider.cxx | 12 |
2 files changed, 8 insertions, 16 deletions
diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx index f035bc174b22..f1d53c8f2aa7 100644 --- a/svx/source/unogallery/unogaltheme.cxx +++ b/svx/source/unogallery/unogaltheme.cxx @@ -135,13 +135,10 @@ uno::Any SAL_CALL GalleryTheme::getByIndex( ::sal_Int32 nIndex ) { throw lang::IndexOutOfBoundsException(); } - else - { - const GalleryObject* pObj = mpTheme->ImplGetGalleryObject( nIndex ); + const GalleryObject* pObj = mpTheme->ImplGetGalleryObject( nIndex ); - if( pObj ) - aRet <<= uno::Reference< gallery::XGalleryItem >( new GalleryItem( *this, *pObj ) ); - } + if( pObj ) + aRet <<= uno::Reference< gallery::XGalleryItem >( new GalleryItem( *this, *pObj ) ); } return aRet; @@ -291,8 +288,7 @@ void SAL_CALL GalleryTheme::removeByIndex( sal_Int32 nIndex ) { if( ( nIndex < 0 ) || ( nIndex >= getCount() ) ) throw lang::IndexOutOfBoundsException(); - else - mpTheme->RemoveObject( nIndex ); + mpTheme->RemoveObject( nIndex ); } } diff --git a/svx/source/unogallery/unogalthemeprovider.cxx b/svx/source/unogallery/unogalthemeprovider.cxx index f11dcb279331..c497a86d830e 100644 --- a/svx/source/unogallery/unogalthemeprovider.cxx +++ b/svx/source/unogallery/unogalthemeprovider.cxx @@ -166,10 +166,8 @@ uno::Any SAL_CALL GalleryThemeProvider::getByName( const OUString& rName ) { throw container::NoSuchElementException(); } - else - { - aRet <<= uno::Reference< gallery::XGalleryTheme >( new ::unogallery::GalleryTheme( rName ) ); - } + + aRet <<= uno::Reference< gallery::XGalleryTheme >( new ::unogallery::GalleryTheme( rName ) ); return aRet; } @@ -239,10 +237,8 @@ void SAL_CALL GalleryThemeProvider::removeByName( const OUString& rName ) { throw container::NoSuchElementException(); } - else - { - mpGallery->RemoveTheme( rName ); - } + + mpGallery->RemoveTheme( rName ); } } |