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 /extensions | |
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 'extensions')
-rw-r--r-- | extensions/source/scanner/sane.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/source/scanner/sane.cxx b/extensions/source/scanner/sane.cxx index 711456cecea3..8d7dc6dcc341 100644 --- a/extensions/source/scanner/sane.cxx +++ b/extensions/source/scanner/sane.cxx @@ -604,10 +604,10 @@ bool Sane::Start( BitmapTransporter& rBitmap ) aConverter.WriteUInt32( (sal_uInt32)40 ); aConverter.WriteUInt32( (sal_uInt32)0 ); // fill in width later aConverter.WriteUInt32( (sal_uInt32)0 ); // fill in height later - aConverter.WriteUInt16( (sal_uInt16)1 ); + aConverter.WriteUInt16( 1 ); // create header for 24 bits // correct later if necessary - aConverter.WriteUInt16( (sal_uInt16)24 ); + aConverter.WriteUInt16( 24 ); aConverter.WriteUInt32( (sal_uInt32)0 ); aConverter.WriteUInt32( (sal_uInt32)0 ); aConverter.WriteUInt32( (sal_uInt32)0 ); @@ -768,10 +768,10 @@ bool Sane::Start( BitmapTransporter& rBitmap ) aConverter.Seek( 10 ); aConverter.WriteUInt32( (sal_uInt32)64 ); aConverter.Seek( 28 ); - aConverter.WriteUInt16( (sal_uInt16) 1 ); + aConverter.WriteUInt16( 1 ); aConverter.Seek( 54 ); // write color table - aConverter.WriteUInt16( (sal_uInt16)0xffff ); + aConverter.WriteUInt16( 0xffff ); aConverter.WriteUChar( 0xff ); aConverter.WriteUChar( 0 ); aConverter.WriteUInt32( (sal_uInt32)0 ); @@ -782,7 +782,7 @@ bool Sane::Start( BitmapTransporter& rBitmap ) aConverter.Seek( 10 ); aConverter.WriteUInt32( (sal_uInt32)1084 ); aConverter.Seek( 28 ); - aConverter.WriteUInt16( (sal_uInt16) 8 ); + aConverter.WriteUInt16( 8 ); aConverter.Seek( 54 ); // write color table for( nLine = 0; nLine < 256; nLine++ ) |