diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:24:56 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:24:56 +0100 |
commit | 2e1559cd85d2f1b4e308d63d34bf3632ba4b6d4b (patch) | |
tree | 298e5b99f9f2dc45b90dd8b6b9472dea5f7ca40d /embeddedobj/source/msole/ownview.cxx | |
parent | 126f10840b0e5930be57cb55262789e85bff9b21 (diff) |
More loplugin:cstylecast: embeddedobj
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable
loplugin:cstylecast for some more cases" plus
solenv/clang-format/reformat-formatted-files
Change-Id: I16cbffa66d6b9bcc4ca68f0dd8f6bf3f4966a77f
Diffstat (limited to 'embeddedobj/source/msole/ownview.cxx')
-rw-r--r-- | embeddedobj/source/msole/ownview.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/embeddedobj/source/msole/ownview.cxx b/embeddedobj/source/msole/ownview.cxx index a22411f6342c..cff8b66ea56b 100644 --- a/embeddedobj/source/msole/ownview.cxx +++ b/embeddedobj/source/msole/ownview.cxx @@ -309,10 +309,10 @@ bool OwnView_Impl::ReadContentsAndGenerateTempFile( const uno::Reference< io::XI if ( xInStream->readBytes( aReadSeq, 4 ) != 4 ) return false; - sal_uInt32 nUrlSize = (sal_uInt8)aReadSeq[0] - + (sal_uInt8)aReadSeq[1] * 0x100 - + (sal_uInt8)aReadSeq[2] * 0x10000 - + (sal_uInt8)aReadSeq[3] * 0x1000000; + sal_uInt32 nUrlSize = static_cast<sal_uInt8>(aReadSeq[0]) + + static_cast<sal_uInt8>(aReadSeq[1]) * 0x100 + + static_cast<sal_uInt8>(aReadSeq[2]) * 0x10000 + + static_cast<sal_uInt8>(aReadSeq[3]) * 0x1000000; sal_Int64 nTargetPos = xSeekable->getPosition() + nUrlSize; xSeekable->seek( nTargetPos ); @@ -321,10 +321,10 @@ bool OwnView_Impl::ReadContentsAndGenerateTempFile( const uno::Reference< io::XI if ( xInStream->readBytes( aReadSeq, 4 ) != 4 ) return false; - sal_uInt32 nDataSize = (sal_uInt8)aReadSeq[0] - + (sal_uInt8)aReadSeq[1] * 0x100 - + (sal_uInt8)aReadSeq[2] * 0x10000 - + (sal_uInt8)aReadSeq[3] * 0x1000000; + sal_uInt32 nDataSize = static_cast<sal_uInt8>(aReadSeq[0]) + + static_cast<sal_uInt8>(aReadSeq[1]) * 0x100 + + static_cast<sal_uInt8>(aReadSeq[2]) * 0x10000 + + static_cast<sal_uInt8>(aReadSeq[3]) * 0x1000000; aReadSeq.realloc( 32000 ); sal_uInt32 nRead = 0; |