diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-05 08:29:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-09-06 08:43:33 +0200 |
commit | dccd1633a111ba124f9868a4a51579c95200d745 (patch) | |
tree | 221a16d33215ffde2b249c7aca6f8c83981dbec4 /svx | |
parent | 9c34471f54870fc685c343f4af30310e75d3a9ca (diff) |
loplugin:unnecessaryparen include case statements
Change-Id: I79fb3eec0d5d466e33b2e18621a7169695edf82f
Reviewed-on: https://gerrit.libreoffice.org/41920
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/gallery2/galbrws1.cxx | 8 | ||||
-rw-r--r-- | svx/source/gallery2/galbrws2.cxx | 2 | ||||
-rw-r--r-- | svx/source/unogallery/unogaltheme.cxx | 4 | ||||
-rw-r--r-- | svx/source/xoutdev/xattr2.cxx | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/gallery2/galbrws1.cxx b/svx/source/gallery2/galbrws1.cxx index 628f6abdfb23..fb7a4d81b4a1 100644 --- a/svx/source/gallery2/galbrws1.cxx +++ b/svx/source/gallery2/galbrws1.cxx @@ -437,11 +437,11 @@ void GalleryBrowser1::Notify( SfxBroadcaster&, const SfxHint& rHint ) switch( rGalleryHint.GetType() ) { - case( GalleryHintType::THEME_CREATED ): + case GalleryHintType::THEME_CREATED: ImplInsertThemeEntry( mpGallery->GetThemeInfo( rGalleryHint.GetThemeName() ) ); break; - case( GalleryHintType::THEME_RENAMED ): + case GalleryHintType::THEME_RENAMED: { const sal_Int32 nCurSelectPos = mpThemes->GetSelectEntryPos(); const sal_Int32 nRenameEntryPos = mpThemes->GetEntryPos( rGalleryHint.GetThemeName() ); @@ -457,13 +457,13 @@ void GalleryBrowser1::Notify( SfxBroadcaster&, const SfxHint& rHint ) } break; - case( GalleryHintType::THEME_REMOVED ): + case GalleryHintType::THEME_REMOVED: { mpThemes->RemoveEntry( rGalleryHint.GetThemeName() ); } break; - case( GalleryHintType::CLOSE_THEME ): + case GalleryHintType::CLOSE_THEME: { const sal_Int32 nCurSelectPos = mpThemes->GetSelectEntryPos(); const sal_Int32 nCloseEntryPos = mpThemes->GetEntryPos( rGalleryHint.GetThemeName() ); diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index 05ce91bb1e2f..01a87998c156 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -513,7 +513,7 @@ void GalleryBrowser2::Notify( SfxBroadcaster&, const SfxHint& rHint ) switch( rGalleryHint.GetType() ) { - case( GalleryHintType::THEME_UPDATEVIEW ): + case GalleryHintType::THEME_UPDATEVIEW: { if( GALLERYBROWSERMODE_PREVIEW == GetMode() ) SetMode( meLastMode ); diff --git a/svx/source/unogallery/unogaltheme.cxx b/svx/source/unogallery/unogaltheme.cxx index 4b23a33e025f..f035bc174b22 100644 --- a/svx/source/unogallery/unogaltheme.cxx +++ b/svx/source/unogallery/unogaltheme.cxx @@ -304,7 +304,7 @@ void GalleryTheme::Notify( SfxBroadcaster&, const SfxHint& rHint ) switch( rGalleryHint.GetType() ) { - case( GalleryHintType::CLOSE_THEME ): + case GalleryHintType::CLOSE_THEME: { DBG_ASSERT( !mpTheme || mpGallery, "Theme is living without Gallery" ); @@ -318,7 +318,7 @@ void GalleryTheme::Notify( SfxBroadcaster&, const SfxHint& rHint ) } break; - case( GalleryHintType::CLOSE_OBJECT ): + case GalleryHintType::CLOSE_OBJECT: { GalleryObject* pObj = reinterpret_cast< GalleryObject* >( rGalleryHint.GetData1() ); diff --git a/svx/source/xoutdev/xattr2.cxx b/svx/source/xoutdev/xattr2.cxx index 7e78a67c4ae1..5bfb97c0b831 100644 --- a/svx/source/xoutdev/xattr2.cxx +++ b/svx/source/xoutdev/xattr2.cxx @@ -262,11 +262,11 @@ bool XLineCapItem::GetPresentation( SfxItemPresentation /*ePres*/, MapUnit /*eCo pId = RID_SVXSTR_LINECAP_BUTT; break; - case(css::drawing::LineCap_ROUND): + case css::drawing::LineCap_ROUND: pId = RID_SVXSTR_LINECAP_ROUND; break; - case(css::drawing::LineCap_SQUARE): + case css::drawing::LineCap_SQUARE: pId = RID_SVXSTR_LINECAP_SQUARE; break; } |