aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/dicerollernode.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/dicerollernode.cpp
parentf329a8e39beb732b5685eb01476221b461cc50d1 (diff)
downloadOneRoll-cedc70618afa6826d409a64078ea1a8ede4af06c.tar.gz
OneRoll-cedc70618afa6826d409a64078ea1a8ede4af06c.zip
-replace NULL to nullptr.
Diffstat (limited to 'node/dicerollernode.cpp')
-rw-r--r--node/dicerollernode.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/node/dicerollernode.cpp b/node/dicerollernode.cpp
index 89ba24d..b6db419 100644
--- a/node/dicerollernode.cpp
+++ b/node/dicerollernode.cpp
@@ -17,10 +17,10 @@ DiceRollerNode::DiceRollerNode(qint64 max,qint64 min)
void DiceRollerNode::run(ExecutionNode* previous)
{
m_previousNode = previous;
- if(NULL!=previous)
+ if(nullptr!=previous)
{
Result* result=previous->getResult();
- if(NULL!=result)
+ if(nullptr!=result)
{
m_diceCount = result->getResult(Result::SCALAR).toReal();
m_result->setPrevious(result);
@@ -40,7 +40,7 @@ void DiceRollerNode::run(ExecutionNode* previous)
//qDebug() << die->getValue() << "value";
m_diceResult->insertResult(die);
}
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
m_nextNode->run(this);
}
@@ -66,7 +66,7 @@ QString DiceRollerNode::toString(bool wl) const
qint64 DiceRollerNode::getPriority() const
{
qint64 priority=4;
-// if(NULL!=m_nextNode)
+// if(nullptr!=m_nextNode)
// {
// priority = m_nextNode->getPriority();
// }
@@ -77,7 +77,7 @@ qint64 DiceRollerNode::getPriority() const
ExecutionNode* DiceRollerNode::getCopy() const
{
DiceRollerNode* node = new DiceRollerNode(m_max,m_min);
- if(NULL!=m_nextNode)
+ if(nullptr!=m_nextNode)
{
node->setNextNode(m_nextNode->getCopy());
}