diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-25 20:29:27 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:27:18 +0200 |
commit | 4e26b915687acbfab5ebc260d8a7a434761721bd (patch) | |
tree | edb43f77f729e08529c8860d3641f5743009334d /filter | |
parent | 5cefde06ea9f4347b5d2747e0d2825c3c710aa83 (diff) |
remove unnecessary casts in misc calls to SvStream.Write*
left over from our conversion of the SvStream output operators
to more specific methods
Change-Id: Ib80032e8626f5476a89b958f590441994594f4e4
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/graphicfilter/epict/epict.cxx | 10 | ||||
-rw-r--r-- | filter/source/graphicfilter/eps/eps.cxx | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/filter/source/graphicfilter/epict/epict.cxx b/filter/source/graphicfilter/epict/epict.cxx index 559cddd91cf1..1d574aa55880 100644 --- a/filter/source/graphicfilter/epict/epict.cxx +++ b/filter/source/graphicfilter/epict/epict.cxx @@ -308,7 +308,7 @@ void PictWriter::WriteString( const OUString & rString ) sal_Int32 nLen = aString.getLength(); if ( nLen > 255 ) nLen = 255; - pPict->WriteUChar( (sal_uInt8)nLen ); + pPict->WriteUChar( nLen ); for (sal_Int32 i = 0; i < nLen; ++i) pPict->WriteChar( aString[i] ); } @@ -1054,9 +1054,9 @@ void PictWriter::WriteOpcode_BitsRect(const Point & rPoint, const Size & rSize, nPos = pPict->Tell(); pPict->Seek( nDstRowPos ); if ( nDstRowBytes > 250 ) - pPict->WriteUInt16( (sal_uInt16)( nPos - nDstRowPos - 2 ) ); + pPict->WriteUInt16( nPos - nDstRowPos - 2 ); else - pPict->WriteUChar( (sal_uInt8)( nPos - nDstRowPos - 1 ) ); + pPict->WriteUChar( nPos - nDstRowPos - 1 ); pPict->Seek( nPos ); // count percentages, Callback, check errors: @@ -1245,9 +1245,9 @@ void PictWriter::WriteOpcode_BitsRect(const Point & rPoint, const Size & rSize, nPos = pPict->Tell(); pPict->Seek( nDstRowPos ); if ( nDstRowBytes > 250 ) - pPict->WriteUInt16( (sal_uInt16)( nPos - nDstRowPos - 2 ) ); + pPict->WriteUInt16( nPos - nDstRowPos - 2 ); else - pPict->WriteUChar( (sal_uInt8)( nPos - nDstRowPos - 1 ) ); + pPict->WriteUChar( nPos - nDstRowPos - 1 ); pPict->Seek( nPos ); } diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx index 52b52892ed9b..9037313db95e 100644 --- a/filter/source/graphicfilter/eps/eps.cxx +++ b/filter/source/graphicfilter/eps/eps.cxx @@ -2533,7 +2533,7 @@ void PSWriter::ImplWriteDouble( double fNumber, sal_uLong nMode ) sal_Int32 nATemp = labs( (sal_Int32)( ( fNumber - nPTemp ) * 100000 ) ); if ( !nPTemp && nATemp && ( fNumber < 0.0 ) ) - mpPS->WriteChar( (sal_Char)'-' ); + mpPS->WriteChar( '-' ); const OString aNumber1(OString::number(nPTemp)); mpPS->WriteCharPtr( aNumber1.getStr() ); |