diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:13 +0100 |
commit | 681783c9adf85bde36348f11c03d3a483bf545be (patch) | |
tree | a5b8a4eab1695275b3d2516738b43c0d3f6ee158 /sc/source/ui/unoobj/scdetect.cxx | |
parent | fe45359ab818659186672a0ca05979b589dedbfc (diff) |
More loplugin:cstylecast: sc
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: I987ac3a6d062600a5e21c3462c70595dfaa51796
Diffstat (limited to 'sc/source/ui/unoobj/scdetect.cxx')
-rw-r--r-- | sc/source/ui/unoobj/scdetect.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/unoobj/scdetect.cxx b/sc/source/ui/unoobj/scdetect.cxx index 3741a8a17265..881c5f9834a3 100644 --- a/sc/source/ui/unoobj/scdetect.cxx +++ b/sc/source/ui/unoobj/scdetect.cxx @@ -107,7 +107,7 @@ bool detectThisFormat(SvStream& rStr, const sal_uInt16* pSearch) if( nMuster < 0x0100 ) { // compare bytes - if( ( sal_uInt8 ) nMuster != nByte ) + if( static_cast<sal_uInt8>(nMuster) != nByte ) bSync = false; } else if( nMuster & M_DC ) @@ -115,12 +115,12 @@ bool detectThisFormat(SvStream& rStr, const sal_uInt16* pSearch) } else if( nMuster & M_ALT(0) ) { // alternative Bytes - sal_uInt8 nAnzAlt = ( sal_uInt8 ) nMuster; + sal_uInt8 nAnzAlt = static_cast<sal_uInt8>(nMuster); bSync = false; // first unsynchron while( nAnzAlt > 0 ) { pSearch++; - if( ( sal_uInt8 ) *pSearch == nByte ) + if( static_cast<sal_uInt8>(*pSearch) == nByte ) bSync = true; // only now synchronization nAnzAlt--; } |