diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-05 20:18:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 09:16:25 +0100 |
commit | fad9d93ee43f9ab5ed32a0863e8105add4d93740 (patch) | |
tree | 3d2595d185aae5eeada564f19f4529eec15f91c9 /vcl | |
parent | 51f6eaec244bb8568f9d1ccdc647f34ca81f55d5 (diff) |
CID#708574 uninitialized members
Change-Id: I9b004005ac1136861759a33cee08cd945ac7d993
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/impoct.hxx | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/vcl/inc/impoct.hxx b/vcl/inc/impoct.hxx index 81431c0b2336..860a898b593a 100644 --- a/vcl/inc/impoct.hxx +++ b/vcl/inc/impoct.hxx @@ -28,17 +28,25 @@ class ImpErrorQuad { - long nRed; - long nGreen; - long nBlue; + long nRed; + long nGreen; + long nBlue; public: - inline ImpErrorQuad() {} - inline ImpErrorQuad( const BitmapColor& rColor ) : - nRed ( (long) rColor.GetRed() << 5L ), - nGreen ( (long) rColor.GetGreen() << 5L ), - nBlue ( (long) rColor.GetBlue() << 5L ) {} + ImpErrorQuad() + : nRed(0) + , nGreen(0) + , nBlue(0) + { + } + + 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 ImpErrorQuad& operator-=( const BitmapColor& rColor ); |