summaryrefslogtreecommitdiff
path: root/idl
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 17:56:24 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:26:48 +0200
commit5501c8d2220ee3cab703d09d348e99ba3e017dba (patch)
treece59b08fa7ad1192f3038266db1be0d64a05c0c3 /idl
parentdedfa972bc19f21e6fab7c38a64ae9543142f416 (diff)
remove unnecessary casts in calls to SvStream.WriteUInt16
left over from our conversion of the SvStream output operators to more specific methods Change-Id: I482ca7abb84613971e7e8f839f7aa67a65cd71ff
Diffstat (limited to 'idl')
-rw-r--r--idl/source/objects/module.cxx4
-rw-r--r--idl/source/objects/types.cxx2
-rw-r--r--idl/source/prj/database.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/idl/source/objects/module.cxx b/idl/source/objects/module.cxx
index 78ca274c3904..ebd369b42c89 100644
--- a/idl/source/objects/module.cxx
+++ b/idl/source/objects/module.cxx
@@ -75,7 +75,7 @@ void SvMetaModule::Save( SvPersistStream & rStm )
{
SvMetaExtern::Save( rStm );
- rStm.WriteUInt16( (sal_uInt16)(MODULE_VER | IDL_WRITE_COMPILER) ); // Version
+ rStm.WriteUInt16( (MODULE_VER | IDL_WRITE_COMPILER) ); // Version
WriteSvDeclPersistList( rStm, aClassList );
WriteSvDeclPersistList( rStm, aTypeList );
@@ -96,7 +96,7 @@ void SvMetaModule::Save( SvPersistStream & rStm )
// write length of compiler data
sal_uLong nPos = rStm.Tell();
rStm.Seek( nLenPos );
- rStm.WriteUInt16( (sal_uInt16)( nPos - nLenPos - sizeof( sal_uInt16 ) ) );
+ rStm.WriteUInt16( ( nPos - nLenPos - sizeof( sal_uInt16 ) ) );
rStm.Seek( nPos );
}
diff --git a/idl/source/objects/types.cxx b/idl/source/objects/types.cxx
index 2916b660b0d3..e0a2d87a8de4 100644
--- a/idl/source/objects/types.cxx
+++ b/idl/source/objects/types.cxx
@@ -851,7 +851,7 @@ void SvMetaType::Save( SvPersistStream & rStm )
if( nMask & 0x0040 ) WriteSvIdentifier( rStm, aSbxName );
if( nMask & 0x0080 ) WriteSvIdentifier( rStm, aOdlName );
if( nMask & 0x0100 ) WriteSvDeclPersistList( rStm, *pAttrList );
- if( nMask & 0x0800 ) rStm.WriteUInt16( (sal_uInt16)nType );
+ if( nMask & 0x0800 ) rStm.WriteUInt16( nType );
if( nMask & 0x1000 ) rStm.WriteChar( cParserChar );
if( nMask & 0x2000 ) WriteSvIdentifier( rStm, aCName );
if( nMask & 0x4000 ) WriteSvIdentifier( rStm, aBasicName );
diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx
index 3a775f614c84..ad185274017b 100644
--- a/idl/source/prj/database.cxx
+++ b/idl/source/prj/database.cxx
@@ -130,7 +130,7 @@ void SvIdlDataBase::Save( SvStream & rStm, sal_uInt32 nFlags )
aPStm.SetContextFlags( nFlags );
aPStm.WriteUInt32( (sal_uInt32)DATABASE_SIGNATURE );
- aPStm.WriteUInt16( (sal_uInt16)DATABASE_VER );
+ aPStm.WriteUInt16( DATABASE_VER );
bool bOnlyStreamedObjs = false;
if( nFlags & IDL_WRITE_CALLING )