summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-24 20:32:49 +0200
committerNoel Grandin <noel@peralex.com>2014-09-26 15:25:40 +0200
commit8f684e21de081350f0ce1f0bd0420f4775c5388d (patch)
tree66da106d499159a5ee1da6e6fdfe3b95a46d9a4e /editeng
parentebdc36c12dbdd8bc2305adabf83c95c666f7b04f (diff)
remove unnecessary static_cast's
left over from our conversion of the SvStream output operators to more specific methods e Please enter the commit message for your changes. Lines starting Change-Id: Ibfe7635451ef7b8813d7a59c78c5223092a17ad5
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/editeng/editobj.cxx4
-rw-r--r--editeng/source/items/bulitem.cxx2
-rw-r--r--editeng/source/items/frmitems.cxx8
3 files changed, 7 insertions, 7 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx
index ed2be30b1fc8..cfa6a93d3362 100644
--- a/editeng/source/editeng/editobj.cxx
+++ b/editeng/source/editeng/editobj.cxx
@@ -1181,14 +1181,14 @@ void EditTextObjectImpl::StoreData( SvStream& rOStream ) const
// StyleName and Family...
write_uInt16_lenPrefixed_uInt8s_FromOUString(rOStream, rC.GetStyle(), eEncoding);
- rOStream.WriteUInt16( static_cast<sal_uInt16>(rC.GetFamily()) );
+ rOStream.WriteUInt16( rC.GetFamily() );
// Paragraph attributes ...
rC.GetParaAttribs().Store( rOStream );
// The number of attributes ...
size_t nAttribs = rC.aAttribs.size();
- rOStream.WriteUInt16( static_cast<sal_uInt16>(nAttribs) );
+ rOStream.WriteUInt16( nAttribs );
// And the individual attributes
// Items as Surregate => always 8 bytes per Attribute
diff --git a/editeng/source/items/bulitem.cxx b/editeng/source/items/bulitem.cxx
index 68eaf2c2993b..1ab78a7bec62 100644
--- a/editeng/source/items/bulitem.cxx
+++ b/editeng/source/items/bulitem.cxx
@@ -351,7 +351,7 @@ SvStream& SvxBulletItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) c
if ( (nEnd-_nStart) > 0xFF00 )
rStrm.Seek( _nStart );
}
- rStrm.WriteInt32( static_cast<sal_Int32>(nWidth) );
+ rStrm.WriteInt32( nWidth );
rStrm.WriteUInt16( nStart );
rStrm.WriteUChar( nJustify );
rStrm.WriteChar( OUStringToOString(OUString(cSymbol), aFont.GetCharSet()).toChar() );
diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx
index 481e3939172d..1025185cdc96 100644
--- a/editeng/source/items/frmitems.cxx
+++ b/editeng/source/items/frmitems.cxx
@@ -109,7 +109,7 @@ namespace
.WriteUInt16( l.GetDistance() );
if (version >= BORDER_LINE_WITH_STYLE_VERSION)
- stream.WriteUInt16( static_cast<sal_uInt16>(l.GetBorderLineStyle()) );
+ stream.WriteUInt16( l.GetBorderLineStyle() );
return stream;
}
@@ -709,8 +709,8 @@ SvStream& SvxLRSpaceItem::Store( SvStream& rStrm , sal_uInt16 nItemVersion ) con
if( 0x80 & nAutoFirst )
{
- rStrm.WriteInt32( static_cast<sal_Int32>(nLeftMargin) );
- rStrm.WriteInt32( static_cast<sal_Int32>(nRightMargin) );
+ rStrm.WriteInt32( nLeftMargin );
+ rStrm.WriteInt32( nRightMargin );
}
}
@@ -2180,7 +2180,7 @@ SvStream& SvxBoxItem::Store( SvStream& rStrm , sal_uInt16 nItemVersion ) const
const SvxBorderLine* l = pLine[ i ];
if( l )
{
- rStrm.WriteSChar( static_cast<sal_Int8>(i) );
+ rStrm.WriteSChar(i);
StoreBorderLine(rStrm, *l, BorderLineVersionFromBoxVersion(nItemVersion));
}
}