diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-18 08:26:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-03-15 08:52:23 +0200 |
commit | 52e438caafc3cd24b3759b08c1aaee88e5b67877 (patch) | |
tree | ceb8aef8dd12c2b81caf2138ac194b086d9a77ff /sd/source | |
parent | a0d5f0896ed7f2de8ceffd664ee469a383ce7d53 (diff) |
remove unnecessary parentheses in case labels
Change-Id: I987bf68c767709080c67c8b183c036a4109c6caa
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/core/drawdoc4.cxx | 6 | ||||
-rw-r--r-- | sd/source/core/sdobjfac.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/app/sdxfer.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/view/drviews6.cxx | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/sd/source/core/drawdoc4.cxx b/sd/source/core/drawdoc4.cxx index 47c16c165523..f02acee3a766 100644 --- a/sd/source/core/drawdoc4.cxx +++ b/sd/source/core/drawdoc4.cxx @@ -1242,9 +1242,9 @@ css::text::WritingMode SdDrawDocument::GetDefaultWritingMode() const { switch( static_cast<const SvxFrameDirectionItem&>( *pItem ).GetValue() ) { - case( FRMDIR_HORI_LEFT_TOP ): eRet = css::text::WritingMode_LR_TB; break; - case( FRMDIR_HORI_RIGHT_TOP ): eRet = css::text::WritingMode_RL_TB; break; - case( FRMDIR_VERT_TOP_RIGHT ): eRet = css::text::WritingMode_TB_RL; break; + case FRMDIR_HORI_LEFT_TOP: eRet = css::text::WritingMode_LR_TB; break; + case FRMDIR_HORI_RIGHT_TOP: eRet = css::text::WritingMode_RL_TB; break; + case FRMDIR_VERT_TOP_RIGHT: eRet = css::text::WritingMode_TB_RL; break; default: OSL_FAIL( "Frame direction not supported yet" ); diff --git a/sd/source/core/sdobjfac.cxx b/sd/source/core/sdobjfac.cxx index b25c4b8c8f02..5d2c7bf1a0b5 100644 --- a/sd/source/core/sdobjfac.cxx +++ b/sd/source/core/sdobjfac.cxx @@ -41,11 +41,11 @@ IMPL_STATIC_LINK_TYPED( SdObjectFactory, MakeUserData, SdrObjFactory *, pObjFact { switch( pObjFactory->nIdentifier ) { - case( SD_ANIMATIONINFO_ID ): + case SD_ANIMATIONINFO_ID: pObjFactory->pNewData = new SdAnimationInfo( *pObjFactory->pObj ); break; - case( SD_IMAPINFO_ID ): + case SD_IMAPINFO_ID: pObjFactory->pNewData = new SdIMapInfo; break; diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx index aea5e11ca475..52ed60cc2012 100644 --- a/sd/source/ui/app/sdxfer.cxx +++ b/sd/source/ui/app/sdxfer.cxx @@ -595,7 +595,7 @@ bool SdTransferable::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, void* switch( nObjectType ) { - case( SDTRANSFER_OBJECTTYPE_DRAWMODEL ): + case SDTRANSFER_OBJECTTYPE_DRAWMODEL: { try { @@ -625,7 +625,7 @@ bool SdTransferable::WriteObject( tools::SvRef<SotStorageStream>& rxOStm, void* } break; - case( SDTRANSFER_OBJECTTYPE_DRAWOLE ): + case SDTRANSFER_OBJECTTYPE_DRAWOLE: { SfxObjectShell* pEmbObj = static_cast<SfxObjectShell*>(pObject); ::utl::TempFile aTempFile; diff --git a/sd/source/ui/view/drviews6.cxx b/sd/source/ui/view/drviews6.cxx index 548039718438..d34b08ffb694 100644 --- a/sd/source/ui/view/drviews6.cxx +++ b/sd/source/ui/view/drviews6.cxx @@ -273,14 +273,14 @@ void DrawViewShell::ExecBmpMask( SfxRequest& rReq ) switch ( rReq.GetSlot() ) { - case ( SID_BMPMASK_PIPETTE ) : + case SID_BMPMASK_PIPETTE : { mbPipette = static_cast<const SfxBoolItem&>( rReq.GetArgs()-> Get( SID_BMPMASK_PIPETTE ) ).GetValue(); } break; - case ( SID_BMPMASK_EXEC ) : + case SID_BMPMASK_EXEC : { SdrGrafObj* pObj = nullptr; if( mpDrawView && mpDrawView->GetMarkedObjectList().GetMarkCount() ) |