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

CID#708574 uninitialized members

Change-Id: I9b004005ac1136861759a33cee08cd945ac7d993
üst 51f6eaec
...@@ -28,17 +28,25 @@ ...@@ -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 );
......
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