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 {
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 )
......
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