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/source/misc | |
parent | a0d5f0896ed7f2de8ceffd664ee469a383ce7d53 (diff) |
remove unnecessary parentheses in case labels
Change-Id: I987bf68c767709080c67c8b183c036a4109c6caa
Diffstat (limited to 'svtools/source/misc')
-rw-r--r-- | svtools/source/misc/imap.cxx | 36 | ||||
-rw-r--r-- | svtools/source/misc/imap2.cxx | 24 |
2 files changed, 30 insertions, 30 deletions
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; |