diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-19 12:41:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-19 13:06:16 +0000 |
commit | 2b2a3ed37358cab49933a218c8a8544be03fba22 (patch) | |
tree | 3cdcb3776a0aa646bde85547b3d5ee5b53a6d1f0 /vcl | |
parent | 85f48b1b47903b41ebaa4b432e756833a5e92e45 (diff) |
coverity#738862 Uninitialized scalar field
Change-Id: Ib970ef372e7754db890b5a4cd9c9b422a129ba02
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/filter/wmf/winmtf.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vcl/source/filter/wmf/winmtf.hxx b/vcl/source/filter/wmf/winmtf.hxx index e094c54873a7..c20090725f6b 100644 --- a/vcl/source/filter/wmf/winmtf.hxx +++ b/vcl/source/filter/wmf/winmtf.hxx @@ -337,18 +337,18 @@ typedef enum { struct WinMtfFillStyle { Color aFillColor; - sal_Bool bTransparent; + bool bTransparent; WinMtfFillStyleType aType; Bitmap aBmp; WinMtfFillStyle() : aFillColor(Color(COL_BLACK)) - , bTransparent(sal_False) + , bTransparent(false) , aType(FillStyleSolid) { } - WinMtfFillStyle( const Color& rColor, sal_Bool bTrans = sal_False ) + WinMtfFillStyle(const Color& rColor, bool bTrans = false) : aFillColor(rColor) , bTransparent(bTrans) , aType(FillStyleSolid) @@ -356,19 +356,20 @@ struct WinMtfFillStyle } WinMtfFillStyle(Bitmap& rBmp) - : aType(FillStylePattern) + : bTransparent(false) + , aType(FillStylePattern) , aBmp(rBmp) { } - sal_Bool operator==( const WinMtfFillStyle& rStyle ) + bool operator==( const WinMtfFillStyle& rStyle ) { return ( ( aFillColor == rStyle.aFillColor ) && ( bTransparent == rStyle.bTransparent ) && ( aType == rStyle.aType ) ); } - sal_Bool operator==( WinMtfFillStyle* pStyle ) + bool operator==( WinMtfFillStyle* pStyle ) { return ( ( aFillColor == pStyle->aFillColor ) && ( bTransparent == pStyle->bTransparent ) |