aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/explosedicenode.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2017-11-11 18:51:13 +0100
committerRenaud G <renaud@rolisteam.org>2017-11-11 18:51:13 +0100
commitcedc70618afa6826d409a64078ea1a8ede4af06c (patch)
tree3082249db90f6eebe7b23b226c5c688e7f4648a5 /node/explosedicenode.cpp
parentf329a8e39beb732b5685eb01476221b461cc50d1 (diff)
downloadOneRoll-cedc70618afa6826d409a64078ea1a8ede4af06c.tar.gz
OneRoll-cedc70618afa6826d409a64078ea1a8ede4af06c.zip
-replace NULL to nullptr.
Diffstat (limited to 'node/explosedicenode.cpp')
-rw-r--r--node/explosedicenode.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/node/explosedicenode.cpp b/node/explosedicenode.cpp
index 51fc37e..96caaeb 100644
--- a/node/explosedicenode.cpp
+++ b/node/explosedicenode.cpp
@@ -1,18 +1,18 @@
#include "explosedicenode.h"
ExploseDiceNode::ExploseDiceNode()
- : m_diceResult(new DiceResult()),m_validator(NULL)
+ : m_diceResult(new DiceResult()),m_validator(nullptr)
{
m_result = m_diceResult;
}
void ExploseDiceNode::run(ExecutionNode* previous)
{
m_previousNode = previous;
- if((NULL!=previous)&&(NULL!=previous->getResult()))
+ if((nullptr!=previous)&&(nullptr!=previous->getResult()))
{
DiceResult* previous_result = static_cast<DiceResult*>(previous->getResult());
m_result->setPrevious(previous_result);
- if(NULL!=previous_result)
+ if(nullptr!=previous_result)
{
foreach(Die* die,previous_result->getResultList())
{
@@ -34,7 +34,7 @@ void ExploseDiceNode::run(ExecutionNode* previous)
}
// m_diceResult->setResultList(list);
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
m_nextNode->run(this);
}
@@ -43,7 +43,7 @@ void ExploseDiceNode::run(ExecutionNode* previous)
}
ExploseDiceNode::~ExploseDiceNode()
{
- if(NULL!=m_validator)
+ if(nullptr!=m_validator)
{
delete m_validator;
}
@@ -66,7 +66,7 @@ QString ExploseDiceNode::toString(bool withlabel) const
qint64 ExploseDiceNode::getPriority() const
{
qint64 priority=0;
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
priority = m_nextNode->getPriority();
}
@@ -78,11 +78,11 @@ qint64 ExploseDiceNode::getPriority() const
ExecutionNode* ExploseDiceNode::getCopy() const
{
ExploseDiceNode* node = new ExploseDiceNode();
- if(NULL!=m_validator)
+ if(nullptr!=m_validator)
{
node->setValidator(m_validator->getCopy());
}
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
node->setNextNode(m_nextNode->getCopy());
}