From 5cefde06ea9f4347b5d2747e0d2825c3c710aa83 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 25 Sep 2014 20:19:30 +0200 Subject: remove unnecessary casts in calls to SvStream.WriteUInt32 left over from our conversion of the SvStream output operators to more specific methods Change-Id: I1d848f19f82783e6eabf2da37dbde78fe36ea1e0 --- svx/source/gallery2/galtheme.cxx | 2 +- svx/source/items/hlnkitem.cxx | 4 ++-- svx/source/xoutdev/xattr.cxx | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'svx') diff --git a/svx/source/gallery2/galtheme.cxx b/svx/source/gallery2/galtheme.cxx index dea0c106b485..72891609f1a9 100644 --- a/svx/source/gallery2/galtheme.cxx +++ b/svx/source/gallery2/galtheme.cxx @@ -1361,7 +1361,7 @@ SvStream& GalleryTheme::WriteData( SvStream& rOStm ) const const long nReservePos = rOStm.Tell(); boost::scoped_ptr pCompat(new VersionCompat( rOStm, STREAM_WRITE, 2 )); - rOStm.WriteUInt32( (sal_uInt32) GetId() ).WriteUChar( IsThemeNameFromResource() ); // From version 2 and up + rOStm.WriteUInt32( GetId() ).WriteUChar( IsThemeNameFromResource() ); // From version 2 and up pCompat.reset(); diff --git a/svx/source/items/hlnkitem.cxx b/svx/source/items/hlnkitem.cxx index ba289978e3d2..d75ad8edb42e 100644 --- a/svx/source/items/hlnkitem.cxx +++ b/svx/source/items/hlnkitem.cxx @@ -42,10 +42,10 @@ SvStream& SvxHyperlinkItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ // UNICODE: rStrm << sTarget; rStrm.WriteUniOrByteString(sTarget, rStrm.GetStreamCharSet()); - rStrm.WriteUInt32( (sal_uInt32) eType ); + rStrm.WriteUInt32( eType ); // marker for versioninfo - rStrm.WriteUInt32( (sal_uInt32) HYPERLINKFF_MARKER ); + rStrm.WriteUInt32( HYPERLINKFF_MARKER ); // new data // UNICODE: rStrm << sIntName; diff --git a/svx/source/xoutdev/xattr.cxx b/svx/source/xoutdev/xattr.cxx index edba2e57b731..f37e4a4cd6e7 100644 --- a/svx/source/xoutdev/xattr.cxx +++ b/svx/source/xoutdev/xattr.cxx @@ -702,10 +702,10 @@ SvStream& XLineDashItem::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const { rOut.WriteInt32( aDash.GetDashStyle() ); rOut.WriteUInt16( aDash.GetDots() ); - rOut.WriteUInt32( (sal_uInt32) aDash.GetDotLen() ); + rOut.WriteUInt32( aDash.GetDotLen() ); rOut.WriteUInt16( aDash.GetDashes() ); - rOut.WriteUInt32( (sal_uInt32) aDash.GetDashLen() ); - rOut.WriteUInt32( (sal_uInt32) aDash.GetDistance() ); + rOut.WriteUInt32( aDash.GetDashLen() ); + rOut.WriteUInt32( aDash.GetDistance() ); } return rOut; -- cgit