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 /sc/source | |
parent | ebdc36c12dbdd8bc2305adabf83c95c666f7b04f (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 'sc/source')
-rw-r--r-- | sc/source/core/tool/rechead.cxx | 4 | ||||
-rw-r--r-- | sc/source/filter/excel/xiescher.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/rechead.cxx b/sc/source/core/tool/rechead.cxx index 6d7a10ffd1e7..587d4168cac6 100644 --- a/sc/source/core/tool/rechead.cxx +++ b/sc/source/core/tool/rechead.cxx @@ -121,7 +121,7 @@ ScMultipleWriteHeader::~ScMultipleWriteHeader() sal_uLong nDataEnd = rStream.Tell(); rStream.WriteUInt16( (sal_uInt16) SCID_SIZES ); - rStream.WriteUInt32( static_cast<sal_uInt32>(aMemStream.Tell()) ); + rStream.WriteUInt32( aMemStream.Tell() ); rStream.Write( aMemStream.GetData(), aMemStream.Tell() ); if ( nDataEnd - nDataPos != nDataSize ) // matched default ? @@ -137,7 +137,7 @@ ScMultipleWriteHeader::~ScMultipleWriteHeader() void ScMultipleWriteHeader::EndEntry() { sal_uLong nPos = rStream.Tell(); - aMemStream.WriteUInt32( static_cast<sal_uInt32>(nPos - nEntryStart) ); + aMemStream.WriteUInt32( nPos - nEntryStart ); } void ScMultipleWriteHeader::StartEntry() diff --git a/sc/source/filter/excel/xiescher.cxx b/sc/source/filter/excel/xiescher.cxx index ff4dce6f59a0..4438ad3e3187 100644 --- a/sc/source/filter/excel/xiescher.cxx +++ b/sc/source/filter/excel/xiescher.cxx @@ -3629,7 +3629,7 @@ OUString XclImpDffConverter::ReadHlinkProperty( SvStream& rDffStrm ) const { // create a faked BIFF record that can be read by XclImpStream class SvMemoryStream aMemStream; - aMemStream.WriteUInt16( sal_uInt16( 0 ) ).WriteUInt16( static_cast< sal_uInt16 >( nBufferSize ) ); + aMemStream.WriteUInt16( sal_uInt16( 0 ) ).WriteUInt16( nBufferSize ); // copy from DFF stream to memory stream ::std::vector< sal_uInt8 > aBuffer( nBufferSize ); |