aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-28 01:46:48 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-28 01:46:48 +0200
commit62ff4aad384c248b62f88a3e38d2e51043c5bb20 (patch)
tree845d44164c62cd315c6d45dd634f5d3ee7d07557
parent740adada376edc90b6264f4f7560fd81ddd20090 (diff)
downloadOneRoll-62ff4aad384c248b62f88a3e38d2e51043c5bb20.tar.gz
OneRoll-62ff4aad384c248b62f88a3e38d2e51043c5bb20.zip
initialize pointer on nullptr
-rw-r--r--node/executionnode.h2
-rw-r--r--node/paintnode.h1
-rw-r--r--operationcondition.h2
-rw-r--r--result/result.h2
4 files changed, 4 insertions, 3 deletions
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<ColorItem> m_colors;
+ DiceResult* m_diceResult= nullptr;
};
#endif
diff --git a/operationcondition.h b/operationcondition.h
index 8b5a411..b324f6b 100644
--- a/operationcondition.h
+++ b/operationcondition.h
@@ -54,7 +54,7 @@ private:
qint64 valueToScalar() const;
private:
- ConditionOperator m_operator;
+ ConditionOperator m_operator= Modulo;
BooleanCondition* m_boolean= nullptr;
// qint64 m_value;
ExecutionNode* m_value= nullptr;
diff --git a/result/result.h b/result/result.h
index a34c74f..76f3a8c 100644
--- a/result/result.h
+++ b/result/result.h
@@ -90,7 +90,7 @@ protected:
QString m_id;
private:
- Result* m_previous; /// @brief
+ Result* m_previous= nullptr; /// @brief
};
#endif // RESULT_H