diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:19:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:19:10 +0100 |
commit | 99e118af6a7e296b3d6dcb812237f27a344c601a (patch) | |
tree | 0d063d0691f462d7eb32d74a30b09f7821a09108 /oox/source/ole/vbaexport.cxx | |
parent | d1a510c9bde5eb9ca8ec1aa3e81782b0615fc95b (diff) |
More loplugin:cstylecast: oox
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: I8fd61e3220a4b9e08d4f97acde28600f31d448ca
Diffstat (limited to 'oox/source/ole/vbaexport.cxx')
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx index 4aeff993b926..658f072497aa 100644 --- a/oox/source/ole/vbaexport.cxx +++ b/oox/source/ole/vbaexport.cxx @@ -170,7 +170,7 @@ void VBACompressionChunk::PackCompressedChunkSize(size_t nSize, sal_uInt16& rHea void VBACompressionChunk::PackCompressedChunkFlag(bool bCompressed, sal_uInt16& rHeader) { sal_uInt16 nTemp1 = rHeader & 0x7FFF; - sal_uInt16 nTemp2 = ((sal_uInt16)bCompressed) << 15; + sal_uInt16 nTemp2 = static_cast<sal_uInt16>(bCompressed) << 15; rHeader = nTemp1 | nTemp2; } @@ -237,7 +237,7 @@ void VBACompressionChunk::compressToken(size_t index, sal_uInt8& nFlagByte) // section 2.4.1.3.18 void VBACompressionChunk::SetFlagBit(size_t index, bool bVal, sal_uInt8& rFlag) { - size_t nTemp1 = ((int)bVal) << index; + size_t nTemp1 = static_cast<int>(bVal) << index; sal_uInt8 nTemp2 = rFlag & (~nTemp1); rFlag = nTemp2 | nTemp1; } |