diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-11-03 15:06:52 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-11-03 15:42:41 +0000 |
commit | d0d1cd58cf0e51ba1dcb60291abe623c504c3c18 (patch) | |
tree | 67d068fc9c9e77adbbbdb4b2fc91bcda04a4f0ae /vcl | |
parent | 95dec4bc44ee84041130bb2cfa027a4d4b203ae0 (diff) |
mbIsGrey needs to be initialized in ctor
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/salbtype.hxx | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/vcl/inc/vcl/salbtype.hxx b/vcl/inc/vcl/salbtype.hxx index 3e8c4c95425d..efd981a568bc 100644 --- a/vcl/inc/vcl/salbtype.hxx +++ b/vcl/inc/vcl/salbtype.hxx @@ -535,16 +535,18 @@ inline sal_uLong BitmapColor::GetColorError( const BitmapColor& rBitmapColor ) c // ------------------------------------------------------------------ -inline BitmapPalette::BitmapPalette() : - mpBitmapColor ( NULL ), - mnCount ( 0 ) +inline BitmapPalette::BitmapPalette() + : mpBitmapColor(NULL) + , mnCount(0) + , mbIsGrey(false) { } // ------------------------------------------------------------------ -inline BitmapPalette::BitmapPalette( const BitmapPalette& rBitmapPalette ) : - mnCount( rBitmapPalette.mnCount ) +inline BitmapPalette::BitmapPalette( const BitmapPalette& rBitmapPalette ) + : mnCount(rBitmapPalette.mnCount) + , mbIsGrey(rBitmapPalette.mbIsGrey) { if( mnCount ) { @@ -558,8 +560,9 @@ inline BitmapPalette::BitmapPalette( const BitmapPalette& rBitmapPalette ) : // ------------------------------------------------------------------ -inline BitmapPalette::BitmapPalette( sal_uInt16 nCount ) : - mnCount( nCount ) +inline BitmapPalette::BitmapPalette( sal_uInt16 nCount ) + : mnCount(nCount) + , mbIsGrey(false) { if( mnCount ) { |