summaryrefslogtreecommitdiff
path: root/sw/source/core/layout/laycache.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-24 20:32:49 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:25:40 +0200
commit8f684e21de081350f0ce1f0bd0420f4775c5388d (patch)
tree66da106d499159a5ee1da6e6fdfe3b95a46d9a4e /sw/source/core/layout/laycache.cxx
parentebdc36c12dbdd8bc2305adabf83c95c666f7b04f (diff)
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 'sw/source/core/layout/laycache.cxx')
-rw-r--r--sw/source/core/layout/laycache.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/layout/laycache.cxx b/sw/source/core/layout/laycache.cxx
index d35675e0a1f5..84d56ba21559 100644
--- a/sw/source/core/layout/laycache.cxx
+++ b/sw/source/core/layout/laycache.cxx
@@ -193,9 +193,9 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc )
aIo.OpenFlagRec( bFollow ? 0x01 : 0x00,
bFollow ? 8 : 4 );
nNdIdx -= nStartOfContent;
- aIo.GetStream().WriteUInt32( static_cast<sal_uInt32>(nNdIdx) );
+ aIo.GetStream().WriteUInt32( nNdIdx );
if( bFollow )
- aIo.GetStream().WriteUInt32( static_cast<sal_uInt32>(((SwTxtFrm*)pTmp)->GetOfst()) );
+ aIo.GetStream().WriteUInt32( ((SwTxtFrm*)pTmp)->GetOfst() );
aIo.CloseFlagRec();
/* Close Paragraph Record */
aIo.CloseRec( SW_LAYCACHE_IO_REC_PARA );
@@ -234,8 +234,8 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc )
aIo.OpenRec( SW_LAYCACHE_IO_REC_TABLE );
aIo.OpenFlagRec( 0, 8 );
nNdIdx -= nStartOfContent;
- aIo.GetStream().WriteUInt32( static_cast<sal_uInt32>(nNdIdx) )
- .WriteUInt32( static_cast<sal_uInt32>(nOfst) );
+ aIo.GetStream().WriteUInt32( nNdIdx )
+ .WriteUInt32( nOfst );
aIo.CloseFlagRec();
/* Close Table Record */
aIo.CloseRec( SW_LAYCACHE_IO_REC_TABLE );
@@ -300,8 +300,8 @@ void SwLayoutCache::Write( SvStream &rStream, const SwDoc& rDoc )
sal_Int32 nY = rRct.Top() - pPage->Frm().Top();
aIo.GetStream().WriteUInt16( nPageNum ).WriteUInt32( nOrdNum )
.WriteInt32( nX ).WriteInt32( nY )
- .WriteInt32( static_cast<sal_Int32>(rRct.Width()) )
- .WriteInt32( static_cast<sal_Int32>(rRct.Height()) );
+ .WriteInt32( rRct.Width() )
+ .WriteInt32( rRct.Height() );
/* Close Fly Record */
aIo.CloseRec( SW_LAYCACHE_IO_REC_FLY );
}