From d9d92d20fdc414c5956290c10c4d473dcb836ceb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 15 Jan 2018 09:02:31 +0100 Subject: More loplugin:cstylecast: svx Change-Id: If370ad12d2885ea9a6348736a3bcab618bc2e6ec --- svx/source/gallery2/galobj.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'svx/source/gallery2/galobj.cxx') diff --git a/svx/source/gallery2/galobj.cxx b/svx/source/gallery2/galobj.cxx index 15810448ba84..b8d11333ac6a 100644 --- a/svx/source/gallery2/galobj.cxx +++ b/svx/source/gallery2/galobj.cxx @@ -173,7 +173,7 @@ void SgaObject::WriteData( SvStream& rOut, const OUString& rDestDir ) const { static const sal_uInt32 nInventor = COMPAT_FORMAT( 'S', 'G', 'A', '3' ); - rOut.WriteUInt32( nInventor ).WriteUInt16( 0x0004 ).WriteUInt16( GetVersion() ).WriteUInt16( (sal_uInt16)GetObjKind() ); + rOut.WriteUInt32( nInventor ).WriteUInt16( 0x0004 ).WriteUInt16( GetVersion() ).WriteUInt16( static_cast(GetObjKind()) ); rOut.WriteBool( bIsThumbBmp ); if( bIsThumbBmp ) @@ -353,7 +353,7 @@ void SgaObjectSound::ReadData( SvStream& rIn, sal_uInt16& rReadVersion ) { sal_uInt16 nTmp16; - rIn.ReadUInt16( nTmp16 ); eSoundType = (GalSoundType) nTmp16; + rIn.ReadUInt16( nTmp16 ); eSoundType = static_cast(nTmp16); if( rReadVersion >= 6 ) aTitle = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIn, RTL_TEXTENCODING_UTF8); -- cgit