From 62ff4aad384c248b62f88a3e38d2e51043c5bb20 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Sun, 28 Jul 2019 01:46:48 +0200 Subject: initialize pointer on nullptr --- node/executionnode.h | 2 +- node/paintnode.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'node') diff --git a/node/executionnode.h b/node/executionnode.h index 62bc5a5..6321c83 100644 --- a/node/executionnode.h +++ b/node/executionnode.h @@ -86,7 +86,7 @@ protected: /** * @brief m_result */ - Result* m_result; + Result* m_result= nullptr; /** * @brief m_nextNode */ diff --git a/node/paintnode.h b/node/paintnode.h index 2675285..2283f83 100644 --- a/node/paintnode.h +++ b/node/paintnode.h @@ -55,6 +55,7 @@ public: protected: QList m_colors; + DiceResult* m_diceResult= nullptr; }; #endif -- cgit v1.2.3-70-g09d2