diff options
author | Noel Grandin <noel@peralex.com> | 2014-09-24 20:32:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-09-26 15:25:40 +0200 |
commit | 8f684e21de081350f0ce1f0bd0420f4775c5388d (patch) | |
tree | 66da106d499159a5ee1da6e6fdfe3b95a46d9a4e /sd | |
parent | ebdc36c12dbdd8bc2305adabf83c95c666f7b04f (diff) |
remove unnecessary static_cast's
left over from our conversion of the SvStream output operators
to more specific methods
e Please enter the commit message for your changes. Lines starting
Change-Id: Ibfe7635451ef7b8813d7a59c78c5223092a17ad5
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/eppt.cxx | 4 | ||||
-rw-r--r-- | sd/source/filter/eppt/epptso.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sd/source/filter/eppt/eppt.cxx b/sd/source/filter/eppt/eppt.cxx index e8165a91fbe7..91278bb19057 100644 --- a/sd/source/filter/eppt/eppt.cxx +++ b/sd/source/filter/eppt/eppt.cxx @@ -1122,8 +1122,8 @@ void ImplExportComments( uno::Reference< drawing::XDrawPage > xPage, SvMemoryStr .WriteUInt16( aDateTime.Minutes ) .WriteUInt16( aDateTime.Seconds ) .WriteInt16( nMilliSeconds ) - .WriteInt32( static_cast< sal_Int32 >( aPoint.X() ) ) - .WriteInt32( static_cast< sal_Int32 >( aPoint.Y() ) ); + .WriteInt32( aPoint.X() ) + .WriteInt32( aPoint.Y() ); } } } diff --git a/sd/source/filter/eppt/epptso.cxx b/sd/source/filter/eppt/epptso.cxx index 8c0eb7fb2b2f..c7b60994db06 100644 --- a/sd/source/filter/eppt/epptso.cxx +++ b/sd/source/filter/eppt/epptso.cxx @@ -3865,15 +3865,15 @@ void TextObjBinary::WriteTextSpecInfo( SvStream* pStrm ) sal_Int32 nPortionSize = rPortion.mnTextSize >= nCharactersLeft ? nCharactersLeft : rPortion.mnTextSize; sal_Int32 nFlags = 7; nCharactersLeft -= nPortionSize; - pStrm ->WriteUInt32( static_cast< sal_uInt32 >( nPortionSize ) ) + pStrm ->WriteUInt32( nPortionSize ) .WriteInt32( nFlags ) - .WriteInt16( static_cast< sal_Int16 >( 1 ) ) // spellinfo -> needs rechecking - .WriteInt16( static_cast< sal_Int16 >( LanguageTag( rPortion.meCharLocale ).makeFallback().getLanguageType() ) ) - .WriteInt16( static_cast< sal_Int16 >( 0 ) ); // alt language + .WriteInt16( 1 ) // spellinfo -> needs rechecking + .WriteInt16( LanguageTag( rPortion.meCharLocale ).makeFallback().getLanguageType() ) + .WriteInt16( 0 ); // alt language } } if ( nCharactersLeft ) - pStrm->WriteUInt32( nCharactersLeft ).WriteInt32( static_cast< sal_Int32 >( 1 ) ).WriteInt16( static_cast< sal_Int16 >( 1 ) ); + pStrm->WriteUInt32( nCharactersLeft ).WriteInt32( 1 ).WriteInt16( 1 ); } } |