[Libreoffice-commits] .: filter/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sat Nov 27 13:37:36 PST 2010
filter/source/graphicfilter/icgm/bitmap.hxx | 34 ++++++++++++++++------------
1 file changed, 20 insertions(+), 14 deletions(-)
New commits:
commit 78ad41c926c501c86c4dc9fc6c618ec2d18287bc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Nov 27 21:37:28 2010 +0000
cppcheck: uninit member variable
diff --git a/filter/source/graphicfilter/icgm/bitmap.hxx b/filter/source/graphicfilter/icgm/bitmap.hxx
index 1ed6d60..62a74f5 100644
--- a/filter/source/graphicfilter/icgm/bitmap.hxx
+++ b/filter/source/graphicfilter/icgm/bitmap.hxx
@@ -54,20 +54,26 @@ class CGMBitmapDescriptor
sal_uInt32 mnX, mnY;
long mnLocalColorPrecision;
sal_uInt32 mnCompressionMode;
- CGMBitmapDescriptor() :
- mpBuf ( NULL ),
- mpBitmap ( NULL ),
- mpAcc ( NULL ),
- mbStatus ( sal_False ),
- mbVMirror ( sal_False ),
- mbHMirror ( sal_False ) { };
- ~CGMBitmapDescriptor()
- {
- if ( mpAcc )
- mpBitmap->ReleaseAccess( mpAcc );
- if ( mpBitmap )
- delete mpBitmap;
- };
+
+ CGMBitmapDescriptor()
+ : mpBuf(NULL)
+ , mpBitmap(NULL)
+ , mpAcc(NULL)
+ , mbStatus(sal_False)
+ , mbVMirror(sal_False)
+ , mbHMirror(sal_False)
+ , mndx(0.0)
+ , mndy(0.0)
+ , mnOrientation(0.0)
+ , mnLocalColorPrecision(0)
+ { };
+ ~CGMBitmapDescriptor()
+ {
+ if ( mpAcc )
+ mpBitmap->ReleaseAccess( mpAcc );
+ if ( mpBitmap )
+ delete mpBitmap;
+ };
};
class CGMBitmap
More information about the Libreoffice-commits
mailing list