summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-04-04 10:21:02 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-04-04 10:41:01 +0100
commit43c23b624ebf467c3955b54a914905b3bfd1a8e3 (patch)
tree3881e062f002b54364fd5f6daada31c5215b8a62 /vcl
parenta4bc9a43198074b529693f1852093d8d72eaae98 (diff)
cppcheck: truncLongCastAssignment
Change-Id: I2d7c2c41f9ad5eb1e30e2bb4cbfb101deab1c907
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/bitmap4.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx
index b1e3ca8a3c2f..cc7b7daebcde 100644
--- a/vcl/source/gdi/bitmap4.cxx
+++ b/vcl/source/gdi/bitmap4.cxx
@@ -585,7 +585,7 @@ bool Bitmap::ImplEmbossGrey( const BmpFilterParam* pFilterParam )
const long nLx = FRound( cos( fAzim ) * cos( fElev ) * 255.0 );
const long nLy = FRound( sin( fAzim ) * cos( fElev ) * 255.0 );
const long nLz = FRound( sin( fElev ) * 255.0 );
- const long nZ2 = ( ( 6 * 255 ) / 4 ) * ( ( 6 * 255 ) / 4 );
+ const auto nZ2 = ( ( 6 * 255 ) / 4 ) * ( ( 6 * 255 ) / 4 );
const long nNzLz = ( ( 6 * 255 ) / 4 ) * nLz;
const sal_uInt8 cLz = (sal_uInt8) SAL_BOUND( nLz, 0, 255 );