diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-03-31 21:20:42 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-01 10:38:25 +0100 |
commit | 504cdfeb0a5b432f0f47ca9fa98348abc5b316c0 (patch) | |
tree | ff218380937269f912ac6ad6669616e5e3bd1071 /include/vcl | |
parent | c71de3a440b6fe44776691553f2726752f184426 (diff) |
coverity#708214 Uninitialized scalar field
Change-Id: I2a2c3ee32df6b88464be5df1faad58e9819b2281
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/salnativewidgets.hxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/vcl/salnativewidgets.hxx b/include/vcl/salnativewidgets.hxx index eb2d7238b8b3..6d67efcbcd10 100644 --- a/include/vcl/salnativewidgets.hxx +++ b/include/vcl/salnativewidgets.hxx @@ -395,11 +395,15 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue int mnUpperPart; int mnLowerPart; - inline SpinbuttonValue() - : ImplControlValue( CTRL_SPINBUTTONS, BUTTONVALUE_DONTKNOW, 0 ) + SpinbuttonValue() + : ImplControlValue( CTRL_SPINBUTTONS, BUTTONVALUE_DONTKNOW, 0 ) + , mnUpperState(0) + , mnLowerState(0) + , mnUpperPart(0) + , mnLowerPart(0) { - mnUpperState = mnLowerState = 0; - }; + } + virtual ~SpinbuttonValue(); virtual SpinbuttonValue* clone() const SAL_OVERRIDE; }; |