diff options
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 8 | ||||
-rw-r--r-- | basic/source/sbx/sbxvalue.cxx | 6 | ||||
-rw-r--r-- | basic/source/sbx/sbxvar.cxx | 6 |
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 ) |