diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-25 06:22:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:26:48 +0200 |
commit | dedfa972bc19f21e6fab7c38a64ae9543142f416 (patch) | |
tree | 9f568319c41402e901b8c7f4974203607135b6d8 /basic | |
parent | 8ea2bb252a8847b514546b7c49eeb7a83fcc7851 (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 'basic')
-rw-r--r-- | basic/source/classes/image.cxx | 4 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 8 | ||||
-rw-r--r-- | basic/source/sbx/sbxarray.cxx | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index 784a1c509996..fb0d12eccc1c 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -267,8 +267,8 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer ) } r .WriteInt32( (sal_Int32) eCharSet ) .WriteInt32( (sal_Int32) nDimBase ) - .WriteInt16( (sal_Int16) nFlags ) - .WriteInt16( (sal_Int16) 0 ) + .WriteInt16( nFlags ) + .WriteInt16( 0 ) .WriteInt32( (sal_Int32) 0 ) .WriteInt32( (sal_Int32) 0 ); diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index 0da36032570a..7195f6d56f45 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -2071,10 +2071,10 @@ bool SbMethod::StoreData( SvStream& rStrm ) const { if( !SbxMethod::StoreData( rStrm ) ) return false; - rStrm.WriteInt16( (sal_Int16) nDebugFlags ) - .WriteInt16( (sal_Int16) nLine1 ) - .WriteInt16( (sal_Int16) nLine2 ) - .WriteInt16( (sal_Int16) nStart ) + rStrm.WriteInt16( nDebugFlags ) + .WriteInt16( nLine1 ) + .WriteInt16( nLine2 ) + .WriteInt16( nStart ) .WriteUChar( bInvalid ); return true; } diff --git a/basic/source/sbx/sbxarray.cxx b/basic/source/sbx/sbxarray.cxx index eafb2d23270f..55cd00beaebe 100644 --- a/basic/source/sbx/sbxarray.cxx +++ b/basic/source/sbx/sbxarray.cxx @@ -781,7 +781,7 @@ bool SbxDimArray::LoadData( SvStream& rStrm, sal_uInt16 nVer ) bool SbxDimArray::StoreData( SvStream& rStrm ) const { - rStrm.WriteInt16( (sal_Int16) m_vDimensions.size() ); + rStrm.WriteInt16( m_vDimensions.size() ); for( short i = 0; i < static_cast<short>(m_vDimensions.size()); i++ ) { short lb, ub; |