summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 06:07:13 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:26:19 +0200
commitbec72dd34f8aa7419c6159bdf02c5ba34a6228a8 (patch)
tree32ebd14ed7c8d0dcfeebda1040dd785183f912ef /tools
parentc476a84abd83873ff807ac5943d882b43f72c90c (diff)
remove unnecessary casts in calls to SvStream.WriteUChar
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I2ea4c7d97e745b3e6a3834f41ac7bfefa4883c7a
Diffstat (limited to 'tools')
-rw-r--r--tools/source/ref/pstm.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx
index c83f30622f42..7ef8aa808ec6 100644
--- a/tools/source/ref/pstm.cxx
+++ b/tools/source/ref/pstm.cxx
@@ -50,7 +50,7 @@ TYPEINIT0( SvRttiBase );
void TOOLS_DLLPUBLIC WritePersistListObjects(const SvPersistListWriteable& rList, SvPersistStream & rStm, bool bOnlyStreamed )
{
#ifdef STOR_NO_OPTIMIZE
- rStm.WriteUChar( (sal_uInt8)(PERSIST_LIST_VER | PERSIST_LIST_DBGUTIL) );
+ rStm.WriteUChar( (PERSIST_LIST_VER | PERSIST_LIST_DBGUTIL) );
sal_uInt32 nObjPos = rStm.WriteDummyLen();
#else
sal_uInt8 bTmp = PERSIST_LIST_VER;
@@ -313,24 +313,24 @@ void SvPersistStream::WriteCompressed( SvStream & rStm, sal_uInt32 nVal )
{
#ifdef STOR_NO_OPTIMIZE
if( nVal < 0x80 )
- rStm.WriteUChar( (sal_uInt8)(LEN_1 | nVal) );
+ rStm.WriteUChar( (LEN_1 | nVal) );
else if( nVal < 0x4000 )
{
- rStm.WriteUChar( (sal_uInt8)(LEN_2 | (nVal >> 8)) );
- rStm.WriteUChar( (sal_uInt8)nVal );
+ rStm.WriteUChar( (LEN_2 | (nVal >> 8)) );
+ rStm.WriteUChar( nVal );
}
else if( nVal < 0x20000000 )
{
// highest sal_uInt8
- rStm.WriteUChar( (sal_uInt8)(LEN_4 | (nVal >> 24)) );
+ rStm.WriteUChar( (LEN_4 | (nVal >> 24)) );
// 2nd highest sal_uInt8
- rStm.WriteUChar( (sal_uInt8)(nVal >> 16) );
+ rStm.WriteUChar( (nVal >> 16) );
rStm.WriteUInt16( (sal_uInt16)(nVal) );
}
else
#endif
{
- rStm.WriteUChar( (sal_uInt8)LEN_5 );
+ rStm.WriteUChar( LEN_5 );
rStm.WriteUInt32( nVal );
}
}
@@ -446,12 +446,12 @@ static void WriteId
{
if( (nHdr & P_OBJ) || nId != 0 )
{ // Id set only for pointers or DBGUTIL
- rStm.WriteUChar( (sal_uInt8)(nHdr) );
+ rStm.WriteUChar( (nHdr) );
SvPersistStream::WriteCompressed( rStm, nId );
}
else
{ // NULL Pointer
- rStm.WriteUChar( (sal_uInt8)(nHdr | P_ID_0) );
+ rStm.WriteUChar( (nHdr | P_ID_0) );
return;
}
}