CID#708574 uninitialized members
Change-Id: I9b004005ac1136861759a33cee08cd945ac7d993
This commit is contained in:
@@ -28,17 +28,25 @@
|
|||||||
|
|
||||||
class ImpErrorQuad
|
class ImpErrorQuad
|
||||||
{
|
{
|
||||||
long nRed;
|
long nRed;
|
||||||
long nGreen;
|
long nGreen;
|
||||||
long nBlue;
|
long nBlue;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
inline ImpErrorQuad() {}
|
ImpErrorQuad()
|
||||||
inline ImpErrorQuad( const BitmapColor& rColor ) :
|
: nRed(0)
|
||||||
nRed ( (long) rColor.GetRed() << 5L ),
|
, nGreen(0)
|
||||||
nGreen ( (long) rColor.GetGreen() << 5L ),
|
, nBlue(0)
|
||||||
nBlue ( (long) rColor.GetBlue() << 5L ) {}
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
ImpErrorQuad( const BitmapColor& rColor )
|
||||||
|
: nRed( (long) rColor.GetRed() << 5L )
|
||||||
|
, nGreen( (long) rColor.GetGreen() << 5L )
|
||||||
|
, nBlue( (long) rColor.GetBlue() << 5L )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
inline void operator=( const BitmapColor& rColor );
|
inline void operator=( const BitmapColor& rColor );
|
||||||
inline ImpErrorQuad& operator-=( const BitmapColor& rColor );
|
inline ImpErrorQuad& operator-=( const BitmapColor& rColor );
|
||||||
|
Reference in New Issue
Block a user