[Libreoffice-commits] core.git: vcl/source
Norbert Thiebaud
nthiebaud at gmail.com
Fri Jun 28 02:10:57 PDT 2013
vcl/source/gdi/dibtools.cxx | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
New commits:
commit 776de8a2394e6adecc9b46920f3e84f522b5c149
Author: Norbert Thiebaud <nthiebaud at gmail.com>
Date: Wed Jun 26 03:27:08 2013 -0500
coverity#1027396 : Logically dead code
Change-Id: Ia1d0358b95e036f3866487db12cb42e0e81d76cf
Reviewed-on: https://gerrit.libreoffice.org/4532
Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
Tested-by: Fridrich Strba <fridrich at documentfoundation.org>
diff --git a/vcl/source/gdi/dibtools.cxx b/vcl/source/gdi/dibtools.cxx
index c4b3bfe..6a15ade 100644
--- a/vcl/source/gdi/dibtools.cxx
+++ b/vcl/source/gdi/dibtools.cxx
@@ -1111,14 +1111,7 @@ bool ImplWriteDIBBits(SvStream& rOStm, BitmapReadAccess& rAcc, BitmapReadAccess*
if(bWriteAlpha)
{
- if(pAccAlpha)
- {
- *pTmp++ = (sal_uInt8)0xff - (sal_uInt8)pAccAlpha->GetPixelIndex( nY, nX );
- }
- else
- {
- *pTmp++ = (sal_uInt8)0xff;
- }
+ *pTmp++ = (sal_uInt8)0xff - (sal_uInt8)pAccAlpha->GetPixelIndex( nY, nX );
}
}
More information about the Libreoffice-commits
mailing list