summaryrefslogtreecommitdiff
path: root/svx/source/gallery2/galobj.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:31 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:02:31 +0100
commitd9d92d20fdc414c5956290c10c4d473dcb836ceb (patch)
tree02c6079b0fbbae106e51dd307202ec2415f3340f /svx/source/gallery2/galobj.cxx
parenta5eddfbf45277eea21dd2271b36e9668313eadf3 (diff)
More loplugin:cstylecast: svx
Change-Id: If370ad12d2885ea9a6348736a3bcab618bc2e6ec
Diffstat (limited to 'svx/source/gallery2/galobj.cxx')
-rw-r--r--svx/source/gallery2/galobj.cxx4
1 files changed, 2 insertions, 2 deletions
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<sal_uInt16>(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<GalSoundType>(nTmp16);
if( rReadVersion >= 6 )
aTitle = read_uInt16_lenPrefixed_uInt8s_ToOUString(rIn, RTL_TEXTENCODING_UTF8);