Kaydet (Commit) 2b2a3ed3 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#738862 Uninitialized scalar field

Change-Id: Ib970ef372e7754db890b5a4cd9c9b422a129ba02
üst 85f48b1b
...@@ -337,18 +337,18 @@ typedef enum { ...@@ -337,18 +337,18 @@ typedef enum {
struct WinMtfFillStyle struct WinMtfFillStyle
{ {
Color aFillColor; Color aFillColor;
sal_Bool bTransparent; bool bTransparent;
WinMtfFillStyleType aType; WinMtfFillStyleType aType;
Bitmap aBmp; Bitmap aBmp;
WinMtfFillStyle() WinMtfFillStyle()
: aFillColor(Color(COL_BLACK)) : aFillColor(Color(COL_BLACK))
, bTransparent(sal_False) , bTransparent(false)
, aType(FillStyleSolid) , aType(FillStyleSolid)
{ {
} }
WinMtfFillStyle( const Color& rColor, sal_Bool bTrans = sal_False ) WinMtfFillStyle(const Color& rColor, bool bTrans = false)
: aFillColor(rColor) : aFillColor(rColor)
, bTransparent(bTrans) , bTransparent(bTrans)
, aType(FillStyleSolid) , aType(FillStyleSolid)
...@@ -356,19 +356,20 @@ struct WinMtfFillStyle ...@@ -356,19 +356,20 @@ struct WinMtfFillStyle
} }
WinMtfFillStyle(Bitmap& rBmp) WinMtfFillStyle(Bitmap& rBmp)
: aType(FillStylePattern) : bTransparent(false)
, aType(FillStylePattern)
, aBmp(rBmp) , aBmp(rBmp)
{ {
} }
sal_Bool operator==( const WinMtfFillStyle& rStyle ) bool operator==( const WinMtfFillStyle& rStyle )
{ {
return ( ( aFillColor == rStyle.aFillColor ) return ( ( aFillColor == rStyle.aFillColor )
&& ( bTransparent == rStyle.bTransparent ) && ( bTransparent == rStyle.bTransparent )
&& ( aType == rStyle.aType ) && ( aType == rStyle.aType )
); );
} }
sal_Bool operator==( WinMtfFillStyle* pStyle ) bool operator==( WinMtfFillStyle* pStyle )
{ {
return ( ( aFillColor == pStyle->aFillColor ) return ( ( aFillColor == pStyle->aFillColor )
&& ( bTransparent == pStyle->bTransparent ) && ( bTransparent == pStyle->bTransparent )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment