summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-25 06:22:44 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:26:48 +0200
commitdedfa972bc19f21e6fab7c38a64ae9543142f416 (patch)
tree9f568319c41402e901b8c7f4974203607135b6d8 /editeng
parent8ea2bb252a8847b514546b7c49eeb7a83fcc7851 (diff)
remove unnecessary casts in calls to SvStream.WriteInt16
left over from our conversion of the SvStream output operators to more specific methods Change-Id: Ie44bec6b988f3e46fe78d14b740818c9141f5df0
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/items/frmitems.cxx14
-rw-r--r--editeng/source/items/paraitem.cxx2
-rw-r--r--editeng/source/items/textitem.cxx4
3 files changed, 10 insertions, 10 deletions
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 9a62c911ab72..c958e8ca37be 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -2580,9 +2580,9 @@ SvStream& SvxBoxInfoItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ )
{
rStrm.WriteChar( (char) i );
WriteColor( rStrm, l->GetColor() );
- rStrm.WriteInt16( (short) l->GetOutWidth() )
- .WriteInt16( (short) l->GetInWidth() )
- .WriteInt16( (short) l->GetDistance() );
+ rStrm.WriteInt16( l->GetOutWidth() )
+ .WriteInt16( l->GetInWidth() )
+ .WriteInt16( l->GetDistance() );
}
}
rStrm.WriteChar( (char) 2 );
@@ -3189,14 +3189,14 @@ SvStream& SvxLineItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) co
if( pLine )
{
WriteColor( rStrm, pLine->GetColor() );
- rStrm.WriteInt16( (short)pLine->GetOutWidth() )
- .WriteInt16( (short)pLine->GetInWidth() )
- .WriteInt16( (short)pLine->GetDistance() );
+ rStrm.WriteInt16( pLine->GetOutWidth() )
+ .WriteInt16( pLine->GetInWidth() )
+ .WriteInt16( pLine->GetDistance() );
}
else
{
WriteColor( rStrm, Color() );
- rStrm.WriteInt16( (short)0 ).WriteInt16( (short)0 ).WriteInt16( (short)0 );
+ rStrm.WriteInt16( 0 ).WriteInt16( 0 ).WriteInt16( 0 );
}
return rStrm;
}
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx
index 5a9789e2d39e..d46627ddbdec 100644
--- a/editeng/source/items/paraitem.cxx
+++ b/editeng/source/items/paraitem.cxx
@@ -267,7 +267,7 @@ SfxPoolItem* SvxLineSpacingItem::Create(SvStream& rStrm, sal_uInt16) const
SvStream& SvxLineSpacingItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const
{
rStrm.WriteSChar( GetPropLineSpace() )
- .WriteInt16( (short) GetInterLineSpace() )
+ .WriteInt16( GetInterLineSpace() )
.WriteUInt16( (sal_uInt16) GetLineHeight() )
.WriteSChar( GetLineSpaceRule() )
.WriteSChar( GetInterLineSpaceRule() );
diff --git a/editeng/source/items/textitem.cxx b/editeng/source/items/textitem.cxx
index 78954f0c3420..0122f2584bc0 100644
--- a/editeng/source/items/textitem.cxx
+++ b/editeng/source/items/textitem.cxx
@@ -2030,7 +2030,7 @@ SfxPoolItem* SvxKerningItem::Clone( SfxItemPool * ) const
SvStream& SvxKerningItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*/ ) const
{
- rStrm.WriteInt16( (short) GetValue() );
+ rStrm.WriteInt16( GetValue() );
return rStrm;
}
@@ -2271,7 +2271,7 @@ SvStream& SvxEscapementItem::Store( SvStream& rStrm , sal_uInt16 /*nItemVersion*
_nEsc = DFLT_ESC_SUB;
}
rStrm.WriteUChar( GetProp() )
- .WriteInt16( (short) _nEsc );
+ .WriteInt16( _nEsc );
return rStrm;
}