From dedfa972bc19f21e6fab7c38a64ae9543142f416 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Sep 2014 06:22:44 +0200 Subject: remove unnecessary casts in calls to SvStream.WriteInt16 left over from our conversion of the SvStream output operators to more specific methods Change-Id: Ie44bec6b988f3e46fe78d14b740818c9141f5df0 --- sot/source/sdstor/stgelem.cxx | 2 +- sot/source/sdstor/stgole.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sot') diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx index 8cf9239f5f97..06d40b3f60b5 100644 --- a/sot/source/sdstor/stgelem.cxx +++ b/sot/source/sdstor/stgelem.cxx @@ -164,7 +164,7 @@ bool StgHeader::Store( StgIo& rIo ) .WriteUInt16( nByteOrder ) // 1C Unicode byte order indicator .WriteInt16( nPageSize ) // 1E 1 << nPageSize = block size .WriteInt16( nDataPageSize ) // 20 1 << this size == data block size - .WriteInt32( (sal_Int32) 0 ).WriteInt32( (sal_Int32) 0 ).WriteInt16( (sal_Int16) 0 ) + .WriteInt32( (sal_Int32) 0 ).WriteInt32( (sal_Int32) 0 ).WriteInt16( 0 ) .WriteInt32( nFATSize ) // 2C total number of FAT pages .WriteInt32( nTOCstrm ) // 30 starting page for the TOC stream .WriteInt32( nReserved ) // 34 diff --git a/sot/source/sdstor/stgole.cxx b/sot/source/sdstor/stgole.cxx index 6669867defa3..4a7cbec76986 100644 --- a/sot/source/sdstor/stgole.cxx +++ b/sot/source/sdstor/stgole.cxx @@ -146,8 +146,8 @@ bool StgCompObjStream::Store() return false; Seek( 0L ); OString aAsciiUserName(OUStringToOString(aUserName, RTL_TEXTENCODING_MS_1252)); - WriteInt16( (sal_Int16) 1 ); // Version? - WriteInt16( (sal_Int16) -2 ); // 0xFFFE = Byte Order Indicator + WriteInt16( 1 ); // Version? + WriteInt16( -2 ); // 0xFFFE = Byte Order Indicator WriteInt32( (sal_Int32) 0x0A03 ); // Windows 3.10 WriteInt32( (sal_Int32) -1L ); WriteClsId( *this, aClsId ); // Class ID -- cgit