diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-25 20:16:26 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:27:17 +0200 |
commit | 04fd62096fca2c0b917ac6172104399e65933585 (patch) | |
tree | 3e1d4e9c8b9aed6b308103c5e235f71ec3b2cce1 /basic | |
parent | 5501c8d2220ee3cab703d09d348e99ba3e017dba (diff) |
remove unnecessary casts in calls to SvStream.WriteInt32
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: I0c0172519479be0535a447e41a592fbf782751bd
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/image.cxx | 16 | ||||
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/classes/image.cxx b/basic/source/classes/image.cxx index fb0d12eccc1c..95694c09ae0b 100644 --- a/basic/source/classes/image.cxx +++ b/basic/source/classes/image.cxx @@ -86,7 +86,7 @@ bool SbiGood( SvStream& r ) sal_uIntPtr SbiOpenRecord( SvStream& r, sal_uInt16 nSignature, sal_uInt16 nElem ) { sal_Size nPos = r.Tell(); - r.WriteUInt16( nSignature ).WriteInt32( (sal_Int32) 0 ).WriteUInt16( nElem ); + r.WriteUInt16( nSignature ).WriteInt32( 0 ).WriteUInt16( nElem ); return nPos; } @@ -95,7 +95,7 @@ void SbiCloseRecord( SvStream& r, sal_Size nOff ) { sal_Size nPos = r.Tell(); r.Seek( nOff + 2 ); - r.WriteInt32( (sal_Int32) ( nPos - nOff - 8 ) ); + r.WriteInt32( ( nPos - nOff - 8 ) ); r.Seek( nPos ); } @@ -259,18 +259,18 @@ bool SbiImage::Save( SvStream& r, sal_uInt32 nVer ) eCharSet = GetSOStoreTextEncoding( eCharSet ); if ( bLegacy ) { - r.WriteInt32( (sal_Int32) B_LEGACYVERSION ); + r.WriteInt32( B_LEGACYVERSION ); } else { - r.WriteInt32( (sal_Int32) B_CURVERSION ); + r.WriteInt32( B_CURVERSION ); } - r .WriteInt32( (sal_Int32) eCharSet ) - .WriteInt32( (sal_Int32) nDimBase ) + r .WriteInt32( eCharSet ) + .WriteInt32( nDimBase ) .WriteInt16( nFlags ) .WriteInt16( 0 ) - .WriteInt32( (sal_Int32) 0 ) - .WriteInt32( (sal_Int32) 0 ); + .WriteInt32( 0 ) + .WriteInt32( 0 ); // Name? if( !aName.isEmpty() && SbiGood( r ) ) diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx index 36602241f006..1fe032f1a278 100644 --- a/basic/source/sbx/sbxvalue.cxx +++ b/basic/source/sbx/sbxvalue.cxx @@ -1627,7 +1627,7 @@ bool SbxValue::LoadData( SvStream& r, sal_uInt16 ) case SbxINT: { sal_uInt8 n = SAL_TYPES_SIZEOFINT; - r.WriteUChar( n ).WriteInt32( (sal_Int32)aData.nInt ); + r.WriteUChar( n ).WriteInt32( aData.nInt ); break; } case SbxUINT: |