summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/bitmap3.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-09-08 14:05:09 +0000
committerRüdiger Timm <rt@openoffice.org>2004-09-08 14:05:09 +0000
commite95c2d010c7411a102b4b8b4d25dec5858ac2da4 (patch)
treead7953ccd0dcb3b0640bee9b5d778cf2e75a4abd /vcl/source/gdi/bitmap3.cxx
parente62f3db4d554cbe9b115b0d0b4c489c36b8c1015 (diff)
INTEGRATION: CWS ooo20040704 (1.4.136); FILE MERGED
2004/07/01 11:24:53 waratah 1.4.136.1: #i30874# Add initial values to potentially uninitialised values
Diffstat (limited to 'vcl/source/gdi/bitmap3.cxx')
-rw-r--r--vcl/source/gdi/bitmap3.cxx11
1 files changed, 6 insertions, 5 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx
index bf259ebb61b4..7401d3ef5ea2 100644
--- a/vcl/source/gdi/bitmap3.cxx
+++ b/vcl/source/gdi/bitmap3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bitmap3.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2004-01-06 13:28:34 $
+ * last change: $Author: rt $ $Date: 2004-09-08 15:05:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -771,7 +771,7 @@ BOOL Bitmap::ImplConvertDown( USHORT nBitCount, Color* pExtColor )
ImpErrorQuad* pErrQuad1 = new ImpErrorQuad[ nWidth ];
ImpErrorQuad* pErrQuad2 = new ImpErrorQuad[ nWidth ];
ImpErrorQuad* pQLine1 = pErrQuad1;
- ImpErrorQuad* pQLine2;
+ ImpErrorQuad* pQLine2 = 0;
long nX, nY;
long nYTmp = 0L;
BYTE cIndex;
@@ -1542,7 +1542,7 @@ BOOL Bitmap::ImplDitherFloyd16()
ImpErrorQuad* pErrQuad1 = new ImpErrorQuad[ nWidth ];
ImpErrorQuad* pErrQuad2 = new ImpErrorQuad[ nWidth ];
ImpErrorQuad* pQLine1 = pErrQuad1;
- ImpErrorQuad* pQLine2;
+ ImpErrorQuad* pQLine2 = 0;
long nX, nY;
long nYTmp = 0L;
BOOL bQ1 = TRUE;
@@ -2020,7 +2020,8 @@ void Bitmap::ImplMedianCut( ULONG* pColBuf, BitmapPalette& rPal,
else
{
const long nTest = ( nPixels >> 1 );
- long nPixOld, nPixNew = 0;
+ long nPixOld = 0;
+ long nPixNew = 0;
if( nBLen > nGLen && nBLen > nRLen )
{