diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:28:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:28:43 +0100 |
commit | 5ff52393f9082c82e8083fbdbb2bd899b443ea15 (patch) | |
tree | 3ad251eab83cf45e311074148c144d916eb345e4 /canvas/source/vcl/canvasbitmaphelper.cxx | |
parent | 898a8b00622d219741ec7649dbac560bc1f70f6b (diff) |
More loplugin:cstylecast: canvas
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: I1054389bc292544a1ba302509175c8718dbec747
Diffstat (limited to 'canvas/source/vcl/canvasbitmaphelper.cxx')
-rw-r--r-- | canvas/source/vcl/canvasbitmaphelper.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/canvas/source/vcl/canvasbitmaphelper.cxx b/canvas/source/vcl/canvasbitmaphelper.cxx index f7af9d1182d3..f3f3995a889b 100644 --- a/canvas/source/vcl/canvasbitmaphelper.cxx +++ b/canvas/source/vcl/canvasbitmaphelper.cxx @@ -248,10 +248,10 @@ namespace vclcanvas x<aBmpSize.Width() && x<rect.X2; ++x ) { - *pScan++ = (sal_uInt8)pWriteAccess->GetBestPaletteIndex( + *pScan++ = static_cast<sal_uInt8>(pWriteAccess->GetBestPaletteIndex( BitmapColor( data[ nCurrPos ], data[ nCurrPos+1 ], - data[ nCurrPos+2 ] ) ); + data[ nCurrPos+2 ] ) )); nCurrPos += 3; @@ -341,10 +341,10 @@ namespace vclcanvas x<aBmpSize.Width() && x<rect.X2; ++x ) { - *pScan++ = (sal_uInt8)pWriteAccess->GetBestPaletteIndex( + *pScan++ = static_cast<sal_uInt8>(pWriteAccess->GetBestPaletteIndex( BitmapColor( data[ nCurrPos ], data[ nCurrPos+1 ], - data[ nCurrPos+2 ] ) ); + data[ nCurrPos+2 ] ) )); nCurrPos += 4; // skip three colors, _plus_ alpha } |