summaryrefslogtreecommitdiff
path: root/vcl/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-12 13:10:00 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-12 13:49:37 +0100
commit0d003606a4cb8e15d0d26b245f72620e577a5282 (patch)
treec916722c394c128a1f0c7b10c556eb9f17462b34 /vcl/qa
parenta0239af64d00aecfa2b4b73488aaf393137ab861 (diff)
coverity#1306214 Uninitialized pointer field
Change-Id: Iac0c13c2c8236109370bf4677cc62e7fa6041c5c
Diffstat (limited to 'vcl/qa')
-rw-r--r--vcl/qa/cppunit/lifecycle.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/lifecycle.cxx b/vcl/qa/cppunit/lifecycle.cxx
index 50c192432327..34a40a126c98 100644
--- a/vcl/qa/cppunit/lifecycle.cxx
+++ b/vcl/qa/cppunit/lifecycle.cxx
@@ -211,7 +211,11 @@ class LeakTestObject
bool mbDeleted;
VclPtr<vcl::Window> mxRef;
void *mpRef;
- LeakTestObject() {}
+ LeakTestObject()
+ : mbDeleted(false)
+ , mpRef(NULL)
+ {
+ }
public:
template<typename vcl_type, typename... Arg> static LeakTestObject *
Create(Arg &&... arg)