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 /svtools | |
parent | a0d5f0896ed7f2de8ceffd664ee469a383ce7d53 (diff) |
remove unnecessary parentheses in case labels
Change-Id: I987bf68c767709080c67c8b183c036a4109c6caa
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/graphic/descriptor.cxx | 84 | ||||
-rw-r--r-- | svtools/source/graphic/grfcache.cxx | 8 | ||||
-rw-r--r-- | svtools/source/graphic/grfmgr2.cxx | 18 | ||||
-rw-r--r-- | svtools/source/graphic/renderer.cxx | 12 | ||||
-rw-r--r-- | svtools/source/misc/imap.cxx | 36 | ||||
-rw-r--r-- | svtools/source/misc/imap2.cxx | 24 | ||||
-rw-r--r-- | svtools/source/svhtml/htmlout.cxx | 6 |
7 files changed, 94 insertions, 94 deletions
diff --git a/svtools/source/graphic/descriptor.cxx b/svtools/source/graphic/descriptor.cxx index f9e64af9acef..a911317f6d33 100644 --- a/svtools/source/graphic/descriptor.cxx +++ b/svtools/source/graphic/descriptor.cxx @@ -106,32 +106,32 @@ void GraphicDescriptor::implCreate( SvStream& rIStm, const OUString* pURL ) switch( aDescriptor.GetFileFormat() ) { - case( GraphicFileFormat::BMP ): pMimeType = MIMETYPE_BMP; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::GIF ): pMimeType = MIMETYPE_GIF; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::JPG ): pMimeType = MIMETYPE_JPG; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PCD ): pMimeType = MIMETYPE_PCD; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PCX ): pMimeType = MIMETYPE_PCX; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PNG ): pMimeType = MIMETYPE_PNG; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::TIF ): pMimeType = MIMETYPE_TIF; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::XBM ): pMimeType = MIMETYPE_XBM; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::XPM ): pMimeType = MIMETYPE_XPM; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PBM ): pMimeType = MIMETYPE_PBM; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PGM ): pMimeType = MIMETYPE_PGM; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PPM ): pMimeType = MIMETYPE_PPM; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::RAS ): pMimeType = MIMETYPE_RAS; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::TGA ): pMimeType = MIMETYPE_TGA; cType = graphic::GraphicType::PIXEL; break; - case( GraphicFileFormat::PSD ): pMimeType = MIMETYPE_PSD; cType = graphic::GraphicType::PIXEL; break; - - case( GraphicFileFormat::EPS ): pMimeType = MIMETYPE_EPS; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::DXF ): pMimeType = MIMETYPE_DXF; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::MET ): pMimeType = MIMETYPE_MET; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::PCT ): pMimeType = MIMETYPE_PCT; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::SGF ): pMimeType = MIMETYPE_SGF; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::SVM ): pMimeType = MIMETYPE_SVM; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::WMF ): pMimeType = MIMETYPE_WMF; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::SGV ): pMimeType = MIMETYPE_SGV; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::EMF ): pMimeType = MIMETYPE_EMF; cType = graphic::GraphicType::VECTOR; break; - case( GraphicFileFormat::SVG ): pMimeType = MIMETYPE_SVG; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::BMP: pMimeType = MIMETYPE_BMP; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::GIF: pMimeType = MIMETYPE_GIF; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::JPG: pMimeType = MIMETYPE_JPG; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PCD: pMimeType = MIMETYPE_PCD; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PCX: pMimeType = MIMETYPE_PCX; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PNG: pMimeType = MIMETYPE_PNG; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::TIF: pMimeType = MIMETYPE_TIF; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::XBM: pMimeType = MIMETYPE_XBM; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::XPM: pMimeType = MIMETYPE_XPM; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PBM: pMimeType = MIMETYPE_PBM; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PGM: pMimeType = MIMETYPE_PGM; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PPM: pMimeType = MIMETYPE_PPM; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::RAS: pMimeType = MIMETYPE_RAS; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::TGA: pMimeType = MIMETYPE_TGA; cType = graphic::GraphicType::PIXEL; break; + case GraphicFileFormat::PSD: pMimeType = MIMETYPE_PSD; cType = graphic::GraphicType::PIXEL; break; + + case GraphicFileFormat::EPS: pMimeType = MIMETYPE_EPS; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::DXF: pMimeType = MIMETYPE_DXF; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::MET: pMimeType = MIMETYPE_MET; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::PCT: pMimeType = MIMETYPE_PCT; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::SGF: pMimeType = MIMETYPE_SGF; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::SVM: pMimeType = MIMETYPE_SVM; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::WMF: pMimeType = MIMETYPE_WMF; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::SGV: pMimeType = MIMETYPE_SGV; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::EMF: pMimeType = MIMETYPE_EMF; cType = graphic::GraphicType::VECTOR; break; + case GraphicFileFormat::SVG: pMimeType = MIMETYPE_SVG; cType = graphic::GraphicType::VECTOR; break; default: break; @@ -296,7 +296,7 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** { switch( (*ppEntries)->mnHandle ) { - case( UNOGRAPHIC_GRAPHICTYPE ): + case UNOGRAPHIC_GRAPHICTYPE: { const GraphicType eType( mpGraphic ? mpGraphic->GetType() : meType ); @@ -306,7 +306,7 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** } break; - case( UNOGRAPHIC_MIMETYPE ): + case UNOGRAPHIC_MIMETYPE: { OUString aMimeType; @@ -318,19 +318,19 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** switch( mpGraphic->GetLink().GetType() ) { - case( GFX_LINK_TYPE_NATIVE_GIF ): pMimeType = MIMETYPE_GIF; break; + case GFX_LINK_TYPE_NATIVE_GIF: pMimeType = MIMETYPE_GIF; break; // #i15508# added BMP type for better exports (checked, works) - case( GFX_LINK_TYPE_NATIVE_BMP ): pMimeType = MIMETYPE_BMP; break; + case GFX_LINK_TYPE_NATIVE_BMP: pMimeType = MIMETYPE_BMP; break; - case( GFX_LINK_TYPE_NATIVE_JPG ): pMimeType = MIMETYPE_JPG; break; - case( GFX_LINK_TYPE_NATIVE_PNG ): pMimeType = MIMETYPE_PNG; break; - case( GFX_LINK_TYPE_NATIVE_WMF ): pMimeType = MIMETYPE_WMF; break; - case( GFX_LINK_TYPE_NATIVE_MET ): pMimeType = MIMETYPE_MET; break; - case( GFX_LINK_TYPE_NATIVE_PCT ): pMimeType = MIMETYPE_PCT; break; + case GFX_LINK_TYPE_NATIVE_JPG: pMimeType = MIMETYPE_JPG; break; + case GFX_LINK_TYPE_NATIVE_PNG: pMimeType = MIMETYPE_PNG; break; + case GFX_LINK_TYPE_NATIVE_WMF: pMimeType = MIMETYPE_WMF; break; + case GFX_LINK_TYPE_NATIVE_MET: pMimeType = MIMETYPE_MET; break; + case GFX_LINK_TYPE_NATIVE_PCT: pMimeType = MIMETYPE_PCT; break; // added Svg mimetype support - case( GFX_LINK_TYPE_NATIVE_SVG ): pMimeType = MIMETYPE_SVG; break; + case GFX_LINK_TYPE_NATIVE_SVG: pMimeType = MIMETYPE_SVG; break; default: pMimeType = nullptr; @@ -351,7 +351,7 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** } break; - case( UNOGRAPHIC_SIZEPIXEL ): + case UNOGRAPHIC_SIZEPIXEL: { awt::Size aAWTSize( 0, 0 ); @@ -370,7 +370,7 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** } break; - case( UNOGRAPHIC_SIZE100THMM ): + case UNOGRAPHIC_SIZE100THMM: { awt::Size aAWTSize( 0, 0 ); @@ -389,7 +389,7 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** } break; - case( UNOGRAPHIC_BITSPERPIXEL ): + case UNOGRAPHIC_BITSPERPIXEL: { sal_uInt16 nBitsPerPixel = 0; @@ -405,19 +405,19 @@ void GraphicDescriptor::_getPropertyValues( const comphelper::PropertyMapEntry** } break; - case( UNOGRAPHIC_TRANSPARENT ): + case UNOGRAPHIC_TRANSPARENT: { *pValues <<= mpGraphic ? mpGraphic->IsTransparent() : mbTransparent; } break; - case( UNOGRAPHIC_ALPHA ): + case UNOGRAPHIC_ALPHA: { *pValues <<= mpGraphic ? mpGraphic->IsAlpha() : mbAlpha; } break; - case( UNOGRAPHIC_ANIMATED ): + case UNOGRAPHIC_ANIMATED: { *pValues <<= mpGraphic ? mpGraphic->IsAnimated() : mbAnimated; } diff --git a/svtools/source/graphic/grfcache.cxx b/svtools/source/graphic/grfcache.cxx index 623e7b14d296..5ef6e8763dd7 100644 --- a/svtools/source/graphic/grfcache.cxx +++ b/svtools/source/graphic/grfcache.cxx @@ -69,7 +69,7 @@ GraphicID::GraphicID( const GraphicObject& rObj ) switch( rGraphic.GetType() ) { - case( GRAPHIC_BITMAP ): + case GRAPHIC_BITMAP: { if(rGraphic.getSvgData().get()) { @@ -102,7 +102,7 @@ GraphicID::GraphicID( const GraphicObject& rObj ) } break; - case( GRAPHIC_GDIMETAFILE ): + case GRAPHIC_GDIMETAFILE: { const GDIMetaFile& rMtf = rGraphic.GetGDIMetaFile(); @@ -227,7 +227,7 @@ bool GraphicCacheEntry::ImplInit( const GraphicObject& rObj ) switch( rGraphic.GetType() ) { - case( GRAPHIC_BITMAP ): + case GRAPHIC_BITMAP: { if(rGraphic.getSvgData().get()) { @@ -244,7 +244,7 @@ bool GraphicCacheEntry::ImplInit( const GraphicObject& rObj ) } break; - case( GRAPHIC_GDIMETAFILE ): + case GRAPHIC_GDIMETAFILE: { mpMtf = new GDIMetaFile( rGraphic.GetGDIMetaFile() ); } diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx index fc9d81945042..b71c56bff751 100644 --- a/svtools/source/graphic/grfmgr2.cxx +++ b/svtools/source/graphic/grfmgr2.cxx @@ -1410,15 +1410,15 @@ void GraphicManager::ImplAdjust( BitmapEx& rBmpEx, const GraphicAttr& rAttr, Gra { switch( aAttr.GetDrawMode() ) { - case( GRAPHICDRAWMODE_MONO ): + case GRAPHICDRAWMODE_MONO: rBmpEx.Convert( BMP_CONVERSION_1BIT_THRESHOLD ); break; - case( GRAPHICDRAWMODE_GREYS ): + case GRAPHICDRAWMODE_GREYS: rBmpEx.Convert( BMP_CONVERSION_8BIT_GREYS ); break; - case( GRAPHICDRAWMODE_WATERMARK ): + case GRAPHICDRAWMODE_WATERMARK: { aAttr.SetLuminance( aAttr.GetLuminance() + WATERMARK_LUM_OFFSET ); aAttr.SetContrast( aAttr.GetContrast() + WATERMARK_CON_OFFSET ); @@ -1513,15 +1513,15 @@ void GraphicManager::ImplAdjust( GDIMetaFile& rMtf, const GraphicAttr& rAttr, Gr { switch( aAttr.GetDrawMode() ) { - case( GRAPHICDRAWMODE_MONO ): + case GRAPHICDRAWMODE_MONO: rMtf.Convert( MTF_CONVERSION_1BIT_THRESHOLD ); break; - case( GRAPHICDRAWMODE_GREYS ): + case GRAPHICDRAWMODE_GREYS: rMtf.Convert( MTF_CONVERSION_8BIT_GREYS ); break; - case( GRAPHICDRAWMODE_WATERMARK ): + case GRAPHICDRAWMODE_WATERMARK: { aAttr.SetLuminance( aAttr.GetLuminance() + WATERMARK_LUM_OFFSET ); aAttr.SetContrast( aAttr.GetContrast() + WATERMARK_CON_OFFSET ); @@ -1564,15 +1564,15 @@ void GraphicManager::ImplAdjust( Animation& rAnimation, const GraphicAttr& rAttr { switch( aAttr.GetDrawMode() ) { - case( GRAPHICDRAWMODE_MONO ): + case GRAPHICDRAWMODE_MONO: rAnimation.Convert( BMP_CONVERSION_1BIT_THRESHOLD ); break; - case( GRAPHICDRAWMODE_GREYS ): + case GRAPHICDRAWMODE_GREYS: rAnimation.Convert( BMP_CONVERSION_8BIT_GREYS ); break; - case( GRAPHICDRAWMODE_WATERMARK ): + case GRAPHICDRAWMODE_WATERMARK: { aAttr.SetLuminance( aAttr.GetLuminance() + WATERMARK_LUM_OFFSET ); aAttr.SetContrast( aAttr.GetContrast() + WATERMARK_CON_OFFSET ); diff --git a/svtools/source/graphic/renderer.cxx b/svtools/source/graphic/renderer.cxx index f40036cfb3d5..250be8d46a07 100644 --- a/svtools/source/graphic/renderer.cxx +++ b/svtools/source/graphic/renderer.cxx @@ -177,7 +177,7 @@ void GraphicRendererVCL::_setPropertyValues( const comphelper::PropertyMapEntry* { switch( (*ppEntries)->mnHandle ) { - case( UNOGRAPHIC_DEVICE ): + case UNOGRAPHIC_DEVICE: { uno::Reference< awt::XDevice > xDevice; @@ -194,7 +194,7 @@ void GraphicRendererVCL::_setPropertyValues( const comphelper::PropertyMapEntry* } break; - case( UNOGRAPHIC_DESTINATIONRECT ): + case UNOGRAPHIC_DESTINATIONRECT: { awt::Rectangle aAWTRect; @@ -206,7 +206,7 @@ void GraphicRendererVCL::_setPropertyValues( const comphelper::PropertyMapEntry* } break; - case( UNOGRAPHIC_RENDERDATA ): + case UNOGRAPHIC_RENDERDATA: { *pValues >>= maRenderData; } @@ -228,14 +228,14 @@ void GraphicRendererVCL::_getPropertyValues( const comphelper::PropertyMapEntry* { switch( (*ppEntries)->mnHandle ) { - case( UNOGRAPHIC_DEVICE ): + case UNOGRAPHIC_DEVICE: { if( mxDevice.is() ) *pValues <<= mxDevice; } break; - case( UNOGRAPHIC_DESTINATIONRECT ): + case UNOGRAPHIC_DESTINATIONRECT: { const awt::Rectangle aAWTRect( maDestRect.Left(), maDestRect.Top(), maDestRect.GetWidth(), maDestRect.GetHeight() ); @@ -244,7 +244,7 @@ void GraphicRendererVCL::_getPropertyValues( const comphelper::PropertyMapEntry* } break; - case( UNOGRAPHIC_RENDERDATA ): + case UNOGRAPHIC_RENDERDATA: { *pValues <<= maRenderData; } diff --git a/svtools/source/misc/imap.cxx b/svtools/source/misc/imap.cxx index c2ad3f1aecbf..e1e5c5964c8c 100644 --- a/svtools/source/misc/imap.cxx +++ b/svtools/source/misc/imap.cxx @@ -569,15 +569,15 @@ ImageMap::ImageMap( const ImageMap& rImageMap ) switch( pCopyObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: maList.push_back( new IMapRectangleObject( *static_cast<IMapRectangleObject*>( pCopyObj ) ) ); break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: maList.push_back( new IMapCircleObject( *static_cast<IMapCircleObject*>( pCopyObj ) ) ); break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: maList.push_back( new IMapPolygonObject( *static_cast<IMapPolygonObject*>( pCopyObj ) ) ); break; @@ -637,15 +637,15 @@ ImageMap& ImageMap::operator=( const ImageMap& rImageMap ) switch( pCopyObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: maList.push_back( new IMapRectangleObject( *static_cast<IMapRectangleObject*>(pCopyObj) ) ); break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: maList.push_back( new IMapCircleObject( *static_cast<IMapCircleObject*>(pCopyObj) ) ); break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: maList.push_back( new IMapPolygonObject( *static_cast<IMapPolygonObject*>(pCopyObj) ) ); break; @@ -685,21 +685,21 @@ bool ImageMap::operator==( const ImageMap& rImageMap ) { switch( pObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: { if ( !( static_cast<IMapRectangleObject*>(pObj) )->IsEqual( *static_cast<IMapRectangleObject*>(pEqObj) ) ) bDifferent = true; } break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: { if ( !( static_cast<IMapCircleObject*>(pObj) )->IsEqual( *static_cast<IMapCircleObject*>(pEqObj) ) ) bDifferent = true; } break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: { if ( !( static_cast<IMapPolygonObject*>(pObj) )->IsEqual( *static_cast<IMapPolygonObject*>(pEqObj) ) ) bDifferent = true; @@ -744,15 +744,15 @@ void ImageMap::InsertIMapObject( const IMapObject& rIMapObject ) { switch( rIMapObject.GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: maList.push_back( new IMapRectangleObject( static_cast<const IMapRectangleObject&>( rIMapObject ) ) ); break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: maList.push_back( new IMapCircleObject( static_cast<const IMapCircleObject&>( rIMapObject ) ) ); break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: maList.push_back( new IMapPolygonObject( static_cast<const IMapPolygonObject&>( rIMapObject ) ) ); break; @@ -808,15 +808,15 @@ void ImageMap::Scale( const Fraction& rFracX, const Fraction& rFracY ) switch( pObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: static_cast<IMapRectangleObject*>( pObj )->Scale( rFracX, rFracY ); break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: static_cast<IMapCircleObject*>( pObj )->Scale( rFracX, rFracY ); break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: static_cast<IMapPolygonObject*>( pObj )->Scale( rFracX, rFracY ); break; @@ -873,7 +873,7 @@ void ImageMap::ImpReadImageMap( SvStream& rIStm, size_t nCount, const OUString& switch( nType ) { - case ( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: { IMapRectangleObject* pObj = new IMapRectangleObject; pObj->Read( rIStm, rBaseURL ); @@ -881,7 +881,7 @@ void ImageMap::ImpReadImageMap( SvStream& rIStm, size_t nCount, const OUString& } break; - case ( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: { IMapCircleObject* pObj = new IMapCircleObject; pObj->Read( rIStm, rBaseURL ); @@ -889,7 +889,7 @@ void ImageMap::ImpReadImageMap( SvStream& rIStm, size_t nCount, const OUString& } break; - case ( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: { IMapPolygonObject* pObj = new IMapPolygonObject; pObj->Read( rIStm, rBaseURL ); diff --git a/svtools/source/misc/imap2.cxx b/svtools/source/misc/imap2.cxx index b9fb6ca032e1..282117562b42 100644 --- a/svtools/source/misc/imap2.cxx +++ b/svtools/source/misc/imap2.cxx @@ -144,9 +144,9 @@ void ImageMap::Write( SvStream& rOStm, sal_uLong nFormat, const OUString& rBaseU { switch( nFormat ) { - case( IMAP_FORMAT_BIN ) : Write( rOStm, rBaseURL ); break; - case( IMAP_FORMAT_CERN ) : ImpWriteCERN( rOStm, rBaseURL ); break; - case( IMAP_FORMAT_NCSA ) : ImpWriteNCSA( rOStm, rBaseURL ); break; + case IMAP_FORMAT_BIN : Write( rOStm, rBaseURL ); break; + case IMAP_FORMAT_CERN : ImpWriteCERN( rOStm, rBaseURL ); break; + case IMAP_FORMAT_NCSA : ImpWriteNCSA( rOStm, rBaseURL ); break; default: break; @@ -163,15 +163,15 @@ void ImageMap::ImpWriteCERN( SvStream& rOStm, const OUString& rBaseURL ) const switch( pObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: static_cast<IMapRectangleObject*>( pObj )->WriteCERN( rOStm, rBaseURL ); break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: static_cast<IMapCircleObject*>( pObj )->WriteCERN( rOStm, rBaseURL ); break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: static_cast<IMapPolygonObject*>( pObj )->WriteCERN( rOStm, rBaseURL ); break; @@ -191,15 +191,15 @@ void ImageMap::ImpWriteNCSA( SvStream& rOStm, const OUString& rBaseURL ) const switch( pObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: static_cast<IMapRectangleObject*>( pObj )->WriteNCSA( rOStm, rBaseURL ); break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: static_cast<IMapCircleObject*>( pObj )->WriteNCSA( rOStm, rBaseURL ); break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: static_cast<IMapPolygonObject*>( pObj )->WriteNCSA( rOStm, rBaseURL ); break; @@ -218,9 +218,9 @@ sal_uLong ImageMap::Read( SvStream& rIStm, sal_uLong nFormat, const OUString& rB switch ( nFormat ) { - case ( IMAP_FORMAT_BIN ) : Read( rIStm, rBaseURL ); break; - case ( IMAP_FORMAT_CERN ) : nRet = ImpReadCERN( rIStm, rBaseURL ); break; - case ( IMAP_FORMAT_NCSA ) : nRet = ImpReadNCSA( rIStm, rBaseURL ); break; + case IMAP_FORMAT_BIN : Read( rIStm, rBaseURL ); break; + case IMAP_FORMAT_CERN : nRet = ImpReadCERN( rIStm, rBaseURL ); break; + case IMAP_FORMAT_NCSA : nRet = ImpReadNCSA( rIStm, rBaseURL ); break; default: break; diff --git a/svtools/source/svhtml/htmlout.cxx b/svtools/source/svhtml/htmlout.cxx index 4347544582d8..477c24d45108 100644 --- a/svtools/source/svhtml/htmlout.cxx +++ b/svtools/source/svhtml/htmlout.cxx @@ -639,7 +639,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, OString aCoords; switch( pObj->GetType() ) { - case( IMAP_OBJ_RECTANGLE ): + case IMAP_OBJ_RECTANGLE: { const IMapRectangleObject* pRectObj = static_cast<const IMapRectangleObject *>(pObj); @@ -657,7 +657,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, .makeStringAndClear(); } break; - case( IMAP_OBJ_CIRCLE ): + case IMAP_OBJ_CIRCLE: { const IMapCircleObject* pCirc = static_cast<const IMapCircleObject *>(pObj); @@ -674,7 +674,7 @@ SvStream& HTMLOutFuncs::Out_ImageMap( SvStream& rStream, .makeStringAndClear(); } break; - case( IMAP_OBJ_POLYGON ): + case IMAP_OBJ_POLYGON: { const IMapPolygonObject* pPolyObj = static_cast<const IMapPolygonObject *>(pObj); |