diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-01 13:31:59 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-01 12:19:58 +0000 |
commit | 64a06ba4bd35e91acd1d9743f9851904eebd1add (patch) | |
tree | fc0cd8aae899611323c3ccc1115387c280844342 /vcl/unx | |
parent | 644aea938b470dd870267983411c484c166a783d (diff) |
loplugin:constantparam in vcl
Change-Id: I5af0906ced6d0e917b54dee22577fa40d134464c
Reviewed-on: https://gerrit.libreoffice.org/23719
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/generic/app/sm.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/gdiimpl.cxx | 2 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/salbmp.cxx | 6 | ||||
-rw-r--r-- | vcl/unx/generic/gdi/xrender_peer.hxx | 6 |
4 files changed, 8 insertions, 8 deletions
diff --git a/vcl/unx/generic/app/sm.cxx b/vcl/unx/generic/app/sm.cxx index 4781a1c1c414..ddefa5a06044 100644 --- a/vcl/unx/generic/app/sm.cxx +++ b/vcl/unx/generic/app/sm.cxx @@ -272,7 +272,7 @@ IMPL_STATIC_LINK_TYPED( SessionManagerClient, SaveYourselfHdl, void*, pStateVal, if( m_pSession ) { - SalSessionSaveRequestEvent aEvent( shutdown, false ); + SalSessionSaveRequestEvent aEvent( shutdown ); m_pSession->CallCallback( &aEvent ); } else diff --git a/vcl/unx/generic/gdi/gdiimpl.cxx b/vcl/unx/generic/gdi/gdiimpl.cxx index ef4845639afe..df5a77961b15 100644 --- a/vcl/unx/generic/gdi/gdiimpl.cxx +++ b/vcl/unx/generic/gdi/gdiimpl.cxx @@ -916,7 +916,7 @@ bool X11SalGraphicsImpl::drawAlphaBitmap( const SalTwoRect& rTR, // paint source * mask over destination picture rPeer.CompositePicture( PictOpOver, aSrcPic, aAlphaPic, aDstPic, - rTR.mnSrcX, rTR.mnSrcY, 0, 0, + rTR.mnSrcX, rTR.mnSrcY, rTR.mnDestX, rTR.mnDestY, rTR.mnDestWidth, rTR.mnDestHeight ); rPeer.FreePicture( aAlphaPic ); diff --git a/vcl/unx/generic/gdi/salbmp.cxx b/vcl/unx/generic/gdi/salbmp.cxx index 537fa6d180ab..da866c88f4d9 100644 --- a/vcl/unx/generic/gdi/salbmp.cxx +++ b/vcl/unx/generic/gdi/salbmp.cxx @@ -1083,7 +1083,7 @@ ImplSalBitmapCache::~ImplSalBitmapCache() ImplClear(); } -void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize, sal_uLong nFlags ) +void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize ) { ImplBmpObj* pObj = nullptr; bool bFound = false; @@ -1104,10 +1104,10 @@ void ImplSalBitmapCache::ImplAdd( X11SalBitmap* pBmp, sal_uLong nMemSize, sal_uL { mnTotalSize -= pObj->mnMemSize; pObj->mnMemSize = nMemSize; - pObj->mnFlags = nFlags; + pObj->mnFlags = 0; } else - maBmpList.push_back( new ImplBmpObj( pBmp, nMemSize, nFlags ) ); + maBmpList.push_back( new ImplBmpObj( pBmp, nMemSize, 0 ) ); } void ImplSalBitmapCache::ImplRemove( X11SalBitmap* pBmp ) diff --git a/vcl/unx/generic/gdi/xrender_peer.hxx b/vcl/unx/generic/gdi/xrender_peer.hxx index 19387925dd7f..1053bfd81b48 100644 --- a/vcl/unx/generic/gdi/xrender_peer.hxx +++ b/vcl/unx/generic/gdi/xrender_peer.hxx @@ -55,7 +55,7 @@ public: const XRenderPictureAttributes* ) const; void SetPictureClipRegion( Picture, Region ) const; void CompositePicture( int nOp, Picture aSrc, Picture aMask, Picture aDst, - int nXSrc, int nYSrc, int nXMask, int nYMask, + int nXSrc, int nYSrc, int nXDst, int nYDst, unsigned nWidth, unsigned nHeight ) const; void FreePicture( Picture ) const; @@ -109,11 +109,11 @@ inline void XRenderPeer::SetPictureClipRegion( Picture aPicture, inline void XRenderPeer::CompositePicture( int nXRenderOp, Picture aSrcPic, Picture aMaskPic, Picture aDstPic, - int nSrcX, int nSrcY, int nMaskX, int nMaskY, int nDstX, int nDstY, + int nSrcX, int nSrcY, int nDstX, int nDstY, unsigned nWidth, unsigned nHeight ) const { XRenderComposite( mpDisplay, nXRenderOp, aSrcPic, aMaskPic, aDstPic, - nSrcX, nSrcY, nMaskX, nMaskY, nDstX, nDstY, nWidth, nHeight ); + nSrcX, nSrcY, 0/*nMaskX*/, 0/*nMaskY*/, nDstX, nDstY, nWidth, nHeight ); } inline void XRenderPeer::FreePicture( Picture aPicture ) const |