diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:05:51 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-15 09:05:51 +0100 |
commit | 769ad348b0008d2879333a29a5570e185a9b5937 (patch) | |
tree | 71d196cd0ec952d289d0338c3554857299d64078 /emfio | |
parent | 3d8090f87e68962e3e585dafb27162b021e4732c (diff) |
More loplugin:cstylecast: emfio
Change-Id: I52e540bdd8ba0090dec752deb7b1fa5c67ae3c85
Diffstat (limited to 'emfio')
-rw-r--r-- | emfio/source/reader/emfreader.cxx | 2 | ||||
-rw-r--r-- | emfio/source/reader/wmfreader.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/emfio/source/reader/emfreader.cxx b/emfio/source/reader/emfreader.cxx index 8e9b6b5d12f1..d1873c74f4fa 100644 --- a/emfio/source/reader/emfreader.cxx +++ b/emfio/source/reader/emfreader.cxx @@ -823,7 +823,7 @@ namespace emfio case EMR_SETROP2 : { mpInputStream->ReadUInt32( nDat32 ); - SetRasterOp( (WMFRasterOp)nDat32 ); + SetRasterOp( static_cast<WMFRasterOp>(nDat32) ); } break; diff --git a/emfio/source/reader/wmfreader.cxx b/emfio/source/reader/wmfreader.cxx index 21f0bd21bc95..5b4353f77132 100644 --- a/emfio/source/reader/wmfreader.cxx +++ b/emfio/source/reader/wmfreader.cxx @@ -203,7 +203,7 @@ namespace emfio { sal_uInt16 nROP2 = 0; mpInputStream->ReadUInt16( nROP2 ); - SetRasterOp( (WMFRasterOp)nROP2 ); + SetRasterOp( static_cast<WMFRasterOp>(nROP2) ); } break; @@ -986,7 +986,7 @@ namespace emfio WMFRasterOp nOldROP = WMFRasterOp::NONE; mpInputStream->ReadUInt32( nROP ); Size aSize = ReadYXExt(); - nOldROP = SetRasterOp( (WMFRasterOp)nROP ); + nOldROP = SetRasterOp( static_cast<WMFRasterOp>(nROP) ); DrawRect( tools::Rectangle( ReadYX(), aSize ), false ); SetRasterOp( nOldROP ); } |