summaryrefslogtreecommitdiff
path: root/basic
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 /basic
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 'basic')
-rw-r--r--basic/source/classes/sbxmod.cxx8
-rw-r--r--basic/source/sbx/sbxvalue.cxx6
-rw-r--r--basic/source/sbx/sbxvar.cxx6
3 files changed, 10 insertions, 10 deletions
diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx
index 2ae87f32f3e8..0da36032570a 100644
--- a/basic/source/classes/sbxmod.cxx
+++ b/basic/source/classes/sbxmod.cxx
@@ -1707,7 +1707,7 @@ bool SbModule::StoreData( SvStream& rStrm ) const
pImage->aOUSource = aOUSource;
pImage->aComment = aComment;
pImage->aName = GetName();
- rStrm.WriteUChar( (sal_uInt8) 1 );
+ rStrm.WriteUChar( 1 );
// # PCode is saved only for legacy formats only
// It should be noted that it probably isn't necessary
// It would be better not to store the image ( more flexible with
@@ -1724,7 +1724,7 @@ bool SbModule::StoreData( SvStream& rStrm ) const
aImg.aOUSource = aOUSource;
aImg.aComment = aComment;
aImg.aName = GetName();
- rStrm.WriteUChar( (sal_uInt8) 1 );
+ rStrm.WriteUChar( 1 );
return aImg.Save( rStrm );
}
}
@@ -1843,7 +1843,7 @@ bool SbModule::StoreBinaryData( SvStream& rStrm, sal_uInt16 nVer )
pImage->aComment = aComment;
pImage->aName = GetName();
- rStrm.WriteUChar( (sal_uInt8) 1 );
+ rStrm.WriteUChar( 1 );
if ( nVer )
bRet = pImage->Save( rStrm, B_EXT_IMG_VERSION );
else
@@ -2075,7 +2075,7 @@ bool SbMethod::StoreData( SvStream& rStrm ) const
.WriteInt16( (sal_Int16) nLine1 )
.WriteInt16( (sal_Int16) nLine2 )
.WriteInt16( (sal_Int16) nStart )
- .WriteUChar( (sal_uInt8) bInvalid );
+ .WriteUChar( bInvalid );
return true;
}
diff --git a/basic/source/sbx/sbxvalue.cxx b/basic/source/sbx/sbxvalue.cxx
index 3dad7683bbe4..36602241f006 100644
--- a/basic/source/sbx/sbxvalue.cxx
+++ b/basic/source/sbx/sbxvalue.cxx
@@ -1605,14 +1605,14 @@ bool SbxValue::LoadData( SvStream& r, sal_uInt16 )
{
if( PTR_CAST(SbxValue,aData.pObj) != this )
{
- r.WriteUChar( (sal_uInt8) 1 );
+ r.WriteUChar( 1 );
return aData.pObj->Store( r );
}
else
- r.WriteUChar( (sal_uInt8) 2 );
+ r.WriteUChar( 2 );
}
else
- r.WriteUChar( (sal_uInt8) 0 );
+ r.WriteUChar( 0 );
break;
case SbxCHAR:
{
diff --git a/basic/source/sbx/sbxvar.cxx b/basic/source/sbx/sbxvar.cxx
index 1bd8dfddb4ba..75503ab2a763 100644
--- a/basic/source/sbx/sbxvar.cxx
+++ b/basic/source/sbx/sbxvar.cxx
@@ -581,7 +581,7 @@ bool SbxVariable::LoadData( SvStream& rStrm, sal_uInt16 nVer )
bool SbxVariable::StoreData( SvStream& rStrm ) const
{
- rStrm.WriteUChar( (sal_uInt8) 0xFF ); // Marker
+ rStrm.WriteUChar( 0xFF ); // Marker
bool bValStore;
if( this->IsA( TYPE(SbxMethod) ) )
{
@@ -612,12 +612,12 @@ bool SbxVariable::StoreData( SvStream& rStrm ) const
rStrm.WriteUInt32( (sal_uInt32)nUserData );
if( pInfo.Is() )
{
- rStrm.WriteUChar( (sal_uInt8) 2 ); // Version 2: with UserData!
+ rStrm.WriteUChar( 2 ); // Version 2: with UserData!
pInfo->StoreData( rStrm );
}
else
{
- rStrm.WriteUChar( (sal_uInt8) 0 );
+ rStrm.WriteUChar( 0 );
}
// Save private data only, if it is a SbxVariable
if( GetClass() == SbxCLASS_VARIABLE )