diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-25 17:56:24 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:26:48 +0200 |
commit | 5501c8d2220ee3cab703d09d348e99ba3e017dba (patch) | |
tree | ce59b08fa7ad1192f3038266db1be0d64a05c0c3 /basic/source/sbx/sbxbase.cxx | |
parent | dedfa972bc19f21e6fab7c38a64ae9543142f416 (diff) |
remove unnecessary casts in calls to SvStream.WriteUInt16
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
Diffstat (limited to 'basic/source/sbx/sbxbase.cxx')
-rw-r--r-- | basic/source/sbx/sbxbase.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/sbx/sbxbase.cxx b/basic/source/sbx/sbxbase.cxx index 6dfaa383441b..7ec9c00edf9a 100644 --- a/basic/source/sbx/sbxbase.cxx +++ b/basic/source/sbx/sbxbase.cxx @@ -260,9 +260,9 @@ bool SbxBase::Store( SvStream& rStrm ) if( ( nFlags & SBX_DONTSTORE ) == SBX_NONE ) { rStrm.WriteUInt32( (sal_uInt32) GetCreator() ) - .WriteUInt16( (sal_uInt16) GetSbxId() ) - .WriteUInt16( (sal_uInt16) GetFlags() ) - .WriteUInt16( (sal_uInt16) GetVersion() ); + .WriteUInt16( GetSbxId() ) + .WriteUInt16( GetFlags() ) + .WriteUInt16( GetVersion() ); sal_Size nOldPos = rStrm.Tell(); rStrm.WriteUInt32( (sal_uInt32) 0L ); bool bRes = StoreData( rStrm ); @@ -381,8 +381,8 @@ bool SbxInfo::StoreData( SvStream& rStrm ) const { write_uInt16_lenPrefixed_uInt8s_FromOUString(rStrm, i->aName, RTL_TEXTENCODING_ASCII_US); - rStrm.WriteUInt16( (sal_uInt16) i->eType ) - .WriteUInt16( (sal_uInt16) i->nFlags ) + rStrm.WriteUInt16( i->eType ) + .WriteUInt16( i->nFlags ) .WriteUInt32( (sal_uInt32) i->nUserData ); } return true; |