diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-24 20:32:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:25:40 +0200 |
commit | 8f684e21de081350f0ce1f0bd0420f4775c5388d (patch) | |
tree | 66da106d499159a5ee1da6e6fdfe3b95a46d9a4e /filter | |
parent | SvStream - rename WriteNumber methods (diff) | |
download | core-8f684e21de081350f0ce1f0bd0420f4775c5388d.tar.gz core-8f684e21de081350f0ce1f0bd0420f4775c5388d.zip |
remove unnecessary static_cast's
left over from our conversion of the SvStream output operators
to more specific methods
e Please enter the commit message for your changes. Lines starting
Change-Id: Ibfe7635451ef7b8813d7a59c78c5223092a17ad5
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/etiff/etiff.cxx | 6 | ||||
-rw-r--r-- | filter/source/msfilter/escherex.cxx | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/filter/source/graphicfilter/etiff/etiff.cxx b/filter/source/graphicfilter/etiff/etiff.cxx index 492c995eaeb1..5bc8fa1408f0 100644 --- a/filter/source/graphicfilter/etiff/etiff.cxx +++ b/filter/source/graphicfilter/etiff/etiff.cxx @@ -344,7 +344,7 @@ void TIFFWriter::ImplWritePalette() sal_uInt16 i; sal_uLong nCurrentPos = m_rOStm.Tell(); m_rOStm.Seek( mnPalPos + 8 ); // the palette tag entry needs the offset - m_rOStm.WriteUInt32( static_cast<sal_uInt32>(nCurrentPos - mnStreamOfs) ); // to the palette colors + m_rOStm.WriteUInt32( nCurrentPos - mnStreamOfs ); // to the palette colors m_rOStm.Seek( nCurrentPos ); for ( i = 0; i < mnColors; i++ ) @@ -374,7 +374,7 @@ bool TIFFWriter::ImplWriteBody() sal_uLong nGfxBegin = m_rOStm.Tell(); m_rOStm.Seek( mnBitmapPos + 8 ); // the strip offset tag entry needs the offset - m_rOStm.WriteUInt32( static_cast<sal_uInt32>(nGfxBegin - mnStreamOfs) ); // to the bitmap data + m_rOStm.WriteUInt32( nGfxBegin - mnStreamOfs ); // to the bitmap data m_rOStm.Seek( nGfxBegin ); StartCompression(); @@ -466,7 +466,7 @@ bool TIFFWriter::ImplWriteBody() { sal_uLong nGfxEnd = m_rOStm.Tell(); m_rOStm.Seek( mnStripByteCountPos + 8 ); - m_rOStm.WriteUInt32( static_cast<sal_uInt32>( nGfxEnd - nGfxBegin ) ); // mnStripByteCountPos needs the size of the compression data + m_rOStm.WriteUInt32( nGfxEnd - nGfxBegin ); // mnStripByteCountPos needs the size of the compression data m_rOStm.Seek( nGfxEnd ); } return mbStatus; diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index fa5da9535c33..661b68d925fa 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -4123,12 +4123,12 @@ EscherBlibEntry::EscherBlibEntry( sal_uInt32 nPictureOffset, const GraphicObject || pGraphicAttr->IsAdjusted() ) { SvMemoryStream aSt( sizeof( GraphicAttr ) ); - aSt.WriteUInt16( static_cast<sal_uInt16>(pGraphicAttr->GetDrawMode()) ) - .WriteUInt32( static_cast<sal_uInt32>(pGraphicAttr->GetMirrorFlags()) ) - .WriteInt32( static_cast<sal_Int32>(pGraphicAttr->GetLeftCrop()) ) - .WriteInt32( static_cast<sal_Int32>(pGraphicAttr->GetTopCrop()) ) - .WriteInt32( static_cast<sal_Int32>(pGraphicAttr->GetRightCrop()) ) - .WriteInt32( static_cast<sal_Int32>(pGraphicAttr->GetBottomCrop()) ) + aSt.WriteUInt16( pGraphicAttr->GetDrawMode() ) + .WriteUInt32( pGraphicAttr->GetMirrorFlags() ) + .WriteInt32( pGraphicAttr->GetLeftCrop() ) + .WriteInt32( pGraphicAttr->GetTopCrop() ) + .WriteInt32( pGraphicAttr->GetRightCrop() ) + .WriteInt32( pGraphicAttr->GetBottomCrop() ) .WriteUInt16( pGraphicAttr->GetRotation() ) .WriteInt16( pGraphicAttr->GetLuminance() ) .WriteInt16( pGraphicAttr->GetContrast() ) @@ -5019,7 +5019,7 @@ void EscherExGlobal::WriteDggAtom( SvStream& rStrm ) const sal_uInt32 nDggSize = GetDggAtomSize(); // write the DGG record header (do not include the 8 bytes of the header in the data size) - rStrm.WriteUInt32( static_cast< sal_uInt32 >( ESCHER_Dgg << 16 ) ).WriteUInt32( static_cast< sal_uInt32 >( nDggSize - 8 ) ); + rStrm.WriteUInt32( ESCHER_Dgg << 16 ).WriteUInt32( nDggSize - 8 ); // claculate and write the fixed DGG data sal_uInt32 nShapeCount = 0; |