diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:10:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:10:40 +0100 |
commit | 55f07d4daa76503530d96b9c20b53c59bcd5bcf9 (patch) | |
tree | 7ad8a720341e38258dab12597d25616c3bff8807 /vcl/opengl/scale.cxx | |
parent | e235da515af0e2a5d5a0cf80773943b65fdb8f7b (diff) |
More loplugin:cstylecast: vcl
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: I363c01a1ae9e863fca4fb4589829492d7280d711
Diffstat (limited to 'vcl/opengl/scale.cxx')
-rw-r--r-- | vcl/opengl/scale.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx index 4ff79b65717b..7981a59ef89d 100644 --- a/vcl/opengl/scale.cxx +++ b/vcl/opengl/scale.cxx @@ -140,7 +140,7 @@ bool OpenGLSalBitmap::ImplScaleConvolution( for( sal_uInt32 i = 0; i < 16; i++ ) { - aOffsets[i * 2] = i / (double) mnWidth; + aOffsets[i * 2] = i / static_cast<double>(mnWidth); aOffsets[i * 2 + 1] = 0; } ImplCreateKernel( rScaleX, aKernel, pWeights, nKernelSize ); @@ -164,7 +164,7 @@ bool OpenGLSalBitmap::ImplScaleConvolution( for( sal_uInt32 i = 0; i < 16; i++ ) { aOffsets[i * 2] = 0; - aOffsets[i * 2 + 1] = i / (double) mnHeight; + aOffsets[i * 2 + 1] = i / static_cast<double>(mnHeight); } ImplCreateKernel( rScaleY, aKernel, pWeights, nKernelSize ); pProgram->SetUniform1fv( "kernel", 16, pWeights ); |