summaryrefslogtreecommitdiff
path: root/vcl/source/filter/wmf
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:15 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-15 09:01:15 +0100
commit72e3c234104a17566c0354beacc6d182234f1e5f (patch)
tree676e0c1a21ac6b107938d486cbe0b4201b5d4f1c /vcl/source/filter/wmf
parent0ffaf416ba6ec1d5955008467a5bf46a40ac6640 (diff)
More loplugin:cstylecast: vcl
Change-Id: I74d1555b461fd8ea316380423fcde2d167714170
Diffstat (limited to 'vcl/source/filter/wmf')
-rw-r--r--vcl/source/filter/wmf/emfwr.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/filter/wmf/emfwr.cxx b/vcl/source/filter/wmf/emfwr.cxx
index de1060a58698..a624b7156703 100644
--- a/vcl/source/filter/wmf/emfwr.cxx
+++ b/vcl/source/filter/wmf/emfwr.cxx
@@ -133,7 +133,7 @@ void EMFWriter::ImplBeginPlusRecord( EmfPlusRecordType nType, sal_uInt16 nFlags
mbRecordPlusOpen = true;
mnRecordPlusPos = m_rStm.Tell();
- m_rStm.WriteUInt16( (sal_uInt16)nType ).WriteUInt16( nFlags );
+ m_rStm.WriteUInt16( static_cast<sal_uInt16>(nType) ).WriteUInt16( nFlags );
m_rStm.SeekRel( 8 );
}
}
@@ -174,7 +174,7 @@ void EMFWriter::WriteEMFPlusHeader( const Size &rMtfSizePix, const Size &rMtfSiz
if (nDivY)
nDPIY /= nDivY; // DPI Y
- m_rStm.WriteInt16( (sal_Int16)EmfPlusRecordType::Header );
+ m_rStm.WriteInt16( sal_Int16(EmfPlusRecordType::Header) );
m_rStm.WriteInt16( 0x01 ) // Flags - Dual Mode // TODO: Check this
.WriteInt32( 0x1C ) // Size
.WriteInt32( 0x10 ) // Data Size