summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/errinf.cxx7
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()