summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 06:22:44 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:26:48 +0200
commitdedfa972bc19f21e6fab7c38a64ae9543142f416 (patch)
tree9f568319c41402e901b8c7f4974203607135b6d8 /sot
parent8ea2bb252a8847b514546b7c49eeb7a83fcc7851 (diff)
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
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgelem.cxx2
-rw-r--r--sot/source/sdstor/stgole.cxx4
2 files changed, 3 insertions, 3 deletions
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