diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-06-23 09:13:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-06-23 10:55:46 +0100 |
commit | 62256ce4c2f2376f020186a456622091fb902236 (patch) | |
tree | 1b1caf6988a824c6dc44ef167f40d8f6fa029ecf /vcl | |
parent | 2becde65c64897b9621ca786a22fd7e942fc21be (diff) |
coverity#1412988 Uninitialized scalar field
Change-Id: I98bcb9f45caab6b8b052737baf5500766f94f88d
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/errinf.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/source/window/errinf.cxx b/vcl/source/window/errinf.cxx index 7c1fe5e654d5..7815e67bb11a 100644 --- a/vcl/source/window/errinf.cxx +++ b/vcl/source/window/errinf.cxx @@ -227,6 +227,10 @@ class ImplDynamicErrorInfo friend class ErrorInfo; private: + explicit ImplDynamicErrorInfo(DialogMask nInMask) + : nMask(nInMask) + { + } void RegisterError(DynamicErrorInfo *); static void UnRegisterError(DynamicErrorInfo const *); static ErrorInfo* GetDynamicErrorInfo(ErrCode nId); @@ -287,10 +291,9 @@ ErrorInfo::~ErrorInfo() DynamicErrorInfo::DynamicErrorInfo(ErrCode nArgUserId, DialogMask nMask) : ErrorInfo(nArgUserId), - pImpl(new ImplDynamicErrorInfo) + pImpl(new ImplDynamicErrorInfo(nMask)) { pImpl->RegisterError(this); - pImpl->nMask=nMask; } DynamicErrorInfo::~DynamicErrorInfo() |