diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-15 09:46:46 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-15 08:40:44 +0000 |
commit | 47f323d04ca6174f6d9c20061d84d7a7d727cd61 (patch) | |
tree | 3f2e1e5a5141ea849b173b7e53658755c71ce96c /vcl | |
parent | c37b72c182894a481819b44b9a2dc9049dce2c61 (diff) |
loplugin:constantparam
Change-Id: I1a6e13584ca516f44195e724b39e78360a842c7c
Reviewed-on: https://gerrit.libreoffice.org/30859
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bitmap4.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/gdi/bitmap4.cxx b/vcl/source/gdi/bitmap4.cxx index cc7b7daebcde..256832883a0a 100644 --- a/vcl/source/gdi/bitmap4.cxx +++ b/vcl/source/gdi/bitmap4.cxx @@ -66,7 +66,7 @@ bool Bitmap::Filter( BmpFilter eFilter, const BmpFilterParam* pFilterParam ) case BMP_FILTER_SHARPEN: { const long pSharpenMatrix[] = { -1, -1, -1, -1, 16, -1, -1, -1, -1 }; - bRet = ImplConvolute3( &pSharpenMatrix[ 0 ], 8 ); + bRet = ImplConvolute3( &pSharpenMatrix[ 0 ] ); } break; @@ -110,8 +110,9 @@ bool Bitmap::Filter( BmpFilter eFilter, const BmpFilterParam* pFilterParam ) return bRet; } -bool Bitmap::ImplConvolute3( const long* pMatrix, long nDivisor ) +bool Bitmap::ImplConvolute3( const long* pMatrix ) { + const long nDivisor = 8; BitmapReadAccess* pReadAcc = AcquireReadAccess(); bool bRet = false; |